Skip to content

Commit 05600f7

Browse files
committed
remove unused fn
1 parent 71bd671 commit 05600f7

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

Diff for: crates/corro-types/src/pubsub.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,6 @@ impl Handle for MatcherHandle {
277277
self.inner.id
278278
}
279279

280-
fn hash(&self) -> &str {
281-
&self.inner.hash
282-
}
283-
284280
fn cancelled(&self) -> WaitForCancellationFuture {
285281
self.inner.cancel.cancelled()
286282
}
@@ -349,6 +345,10 @@ impl MatcherHandle {
349345
&self.inner.sql
350346
}
351347

348+
pub fn hash(&self) -> &str {
349+
&self.inner.hash
350+
}
351+
352352
pub fn parsed_columns(&self) -> &[ResultColumn] {
353353
&self.inner.parsed.columns
354354
}

Diff for: crates/corro-types/src/updates.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use rusqlite::Connection;
1212
use serde::{Deserialize, Serialize};
1313
use spawn::spawn_counted;
1414
use std::collections::BTreeMap;
15-
use std::fmt::{Debug, Display, Formatter};
15+
use std::fmt::{Debug, Formatter};
1616
use std::sync::Arc;
1717
use std::time::Duration;
1818
use tokio::sync::mpsc;
@@ -33,7 +33,6 @@ pub trait Manager<H> {
3333
#[async_trait]
3434
pub trait Handle {
3535
fn id(&self) -> Uuid;
36-
fn hash(&self) -> &str;
3736
fn cancelled(&self) -> WaitForCancellationFuture;
3837
fn filter_matchable_change(
3938
&self,
@@ -98,10 +97,6 @@ impl Handle for UpdateHandle {
9897
self.inner.id
9998
}
10099

101-
fn hash(&self) -> &str {
102-
&self.inner.name
103-
}
104-
105100
fn cancelled(&self) -> WaitForCancellationFuture {
106101
self.inner.cancel.cancelled()
107102
}

0 commit comments

Comments
 (0)