Skip to content

Commit

Permalink
remove unused fn
Browse files Browse the repository at this point in the history
  • Loading branch information
somtochiama committed Oct 28, 2024
1 parent 71bd671 commit 05600f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
8 changes: 4 additions & 4 deletions crates/corro-types/src/pubsub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,6 @@ impl Handle for MatcherHandle {
self.inner.id
}

fn hash(&self) -> &str {
&self.inner.hash
}

fn cancelled(&self) -> WaitForCancellationFuture {
self.inner.cancel.cancelled()
}
Expand Down Expand Up @@ -349,6 +345,10 @@ impl MatcherHandle {
&self.inner.sql
}

pub fn hash(&self) -> &str {
&self.inner.hash
}

pub fn parsed_columns(&self) -> &[ResultColumn] {
&self.inner.parsed.columns
}
Expand Down
7 changes: 1 addition & 6 deletions crates/corro-types/src/updates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use rusqlite::Connection;
use serde::{Deserialize, Serialize};
use spawn::spawn_counted;
use std::collections::BTreeMap;
use std::fmt::{Debug, Display, Formatter};
use std::fmt::{Debug, Formatter};
use std::sync::Arc;
use std::time::Duration;
use tokio::sync::mpsc;
Expand All @@ -33,7 +33,6 @@ pub trait Manager<H> {
#[async_trait]
pub trait Handle {
fn id(&self) -> Uuid;
fn hash(&self) -> &str;
fn cancelled(&self) -> WaitForCancellationFuture;
fn filter_matchable_change(
&self,
Expand Down Expand Up @@ -98,10 +97,6 @@ impl Handle for UpdateHandle {
self.inner.id
}

fn hash(&self) -> &str {
&self.inner.name
}

fn cancelled(&self) -> WaitForCancellationFuture {
self.inner.cancel.cancelled()
}
Expand Down

0 comments on commit 05600f7

Please sign in to comment.