Skip to content

Commit

Permalink
remove unused trait methods
Browse files Browse the repository at this point in the history
  • Loading branch information
cylewitruk committed Feb 5, 2025
1 parent 76b9b49 commit cb95417
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions signer/src/wsts_state_machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,30 +155,12 @@ where
self.process_packet(&packet)
}

/// Process inbound messages
fn process_inbound_messages(
&mut self,
messages: &[Message],
) -> Result<(Vec<Packet>, Vec<OperationResult>), Error> {
let packets = messages
.iter()
.map(Packet::from_message)
.collect::<Vec<_>>();
self.process_inbound_packets(&packets)
}

/// Process the given packet.
fn process_packet(
&mut self,
packet: &Packet,
) -> Result<(Option<Packet>, Option<OperationResult>), Error>;

/// Process inbound packets
fn process_inbound_packets(
&mut self,
packets: &[Packet],
) -> Result<(Vec<Packet>, Vec<OperationResult>), Error>;

/// Start a signing round with the given message and signature type.
fn start_signing_round(
&mut self,
Expand Down Expand Up @@ -276,15 +258,6 @@ impl WstsCoordinator for FireCoordinator {
.map_err(Error::wsts_coordinator)
}

fn process_inbound_packets(
&mut self,
packets: &[Packet],
) -> Result<(Vec<Packet>, Vec<OperationResult>), Error> {
self.0
.process_inbound_messages(packets)
.map_err(Error::wsts_coordinator)
}

fn start_signing_round(
&mut self,
message: &[u8],
Expand Down Expand Up @@ -385,15 +358,6 @@ impl WstsCoordinator for FrostCoordinator {
.map_err(Error::wsts_coordinator)
}

fn process_inbound_packets(
&mut self,
packets: &[Packet],
) -> Result<(Vec<Packet>, Vec<OperationResult>), Error> {
self.0
.process_inbound_messages(packets)
.map_err(Error::wsts_coordinator)
}

fn start_signing_round(
&mut self,
message: &[u8],
Expand Down

0 comments on commit cb95417

Please sign in to comment.