aboutsummaryrefslogtreecommitdiffstats
path: root/src/wireguard/handshake/peer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wireguard/handshake/peer.rs')
-rw-r--r--src/wireguard/handshake/peer.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/wireguard/handshake/peer.rs b/src/wireguard/handshake/peer.rs
index b7d8740..a4df560 100644
--- a/src/wireguard/handshake/peer.rs
+++ b/src/wireguard/handshake/peer.rs
@@ -73,14 +73,6 @@ impl Peer {
}
}
- /// Set the state of the peer unconditionally
- ///
- /// # Arguments
- ///
- pub fn set_state(&self, state_new: State) {
- *self.state.lock() = state_new;
- }
-
pub fn reset_state(&self) -> Option<u32> {
match mem::replace(&mut *self.state.lock(), State::Reset) {
State::InitiationSent { local, .. } => Some(local),