Remove a couple unused methods

This commit is contained in:
Igor Katson 2023-11-19 21:06:14 +00:00
parent 0c6781ba4b
commit b891cd40dd
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
2 changed files with 1 additions and 12 deletions

View file

@ -144,14 +144,6 @@ impl PeerState {
self.get_live_mut()
}
pub fn dead_to_queued(&mut self) -> bool {
if let PeerState::Dead = self {
*self = PeerState::Queued;
return true;
}
false
}
pub fn to_dead(&mut self) -> Option<Option<LivePeerState>> {
match std::mem::replace(self, PeerState::Dead) {
PeerState::Live(l) => Some(Some(l)),