Skip to content

Commit

Permalink
remove unused trait methods (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
boxdot authored Jul 9, 2024
1 parent ea55a0d commit 5a953e4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 42 deletions.
24 changes: 0 additions & 24 deletions libsignal-service/examples/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,30 +205,6 @@ impl PreKeysStore for ExampleStore {
todo!()
}

/// set the ID of the next pre key
async fn set_next_pre_key_id(
&mut self,
_id: u32,
) -> Result<(), SignalProtocolError> {
todo!()
}

/// set the ID of the next signed pre key
async fn set_next_signed_pre_key_id(
&mut self,
_id: u32,
) -> Result<(), SignalProtocolError> {
todo!()
}

/// set the ID of the next PQ pre key
async fn set_next_pq_pre_key_id(
&mut self,
_id: u32,
) -> Result<(), SignalProtocolError> {
todo!()
}

async fn signed_pre_keys_count(
&self,
) -> Result<usize, SignalProtocolError> {
Expand Down
18 changes: 0 additions & 18 deletions libsignal-service/src/pre_keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,24 +69,6 @@ pub trait PreKeysStore:
/// ID of the next PQ pre key
async fn next_pq_pre_key_id(&self) -> Result<u32, SignalProtocolError>;

/// set the ID of the next pre key
async fn set_next_pre_key_id(
&mut self,
id: u32,
) -> Result<(), SignalProtocolError>;

/// set the ID of the next signed pre key
async fn set_next_signed_pre_key_id(
&mut self,
id: u32,
) -> Result<(), SignalProtocolError>;

/// set the ID of the next PQ pre key
async fn set_next_pq_pre_key_id(
&mut self,
id: u32,
) -> Result<(), SignalProtocolError>;

/// number of signed pre-keys we currently have in store
async fn signed_pre_keys_count(&self)
-> Result<usize, SignalProtocolError>;
Expand Down

0 comments on commit 5a953e4

Please sign in to comment.