diff --git a/noita-proxy/src/net.rs b/noita-proxy/src/net.rs index 3bb82e9b..afbae8a6 100644 --- a/noita-proxy/src/net.rs +++ b/noita-proxy/src/net.rs @@ -319,7 +319,6 @@ impl NetManager { &NetMsg::PeerDisconnected { id: *peer }, Reliability::Reliable, ); - self.peer.remove(*peer) } to_kick.clear(); for net_event in self.peer.recv() { diff --git a/noita-proxy/src/net/omni.rs b/noita-proxy/src/net/omni.rs index 89ca3258..d8939bc1 100644 --- a/noita-proxy/src/net/omni.rs +++ b/noita-proxy/src/net/omni.rs @@ -93,13 +93,6 @@ impl PeerVariant { } } - pub(crate) fn remove(&self, peer: OmniPeerId) { - match self { - PeerVariant::Tangled(p) => p.remove(peer.into()), - PeerVariant::Steam(p) => p.remove(peer), - } - } - pub(crate) fn flush(&self) { if let PeerVariant::Steam(p) = self { p.flush()