Skip to content

Commit

Permalink
remove unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
flub committed Apr 24, 2024
1 parent 66a025c commit b923c31
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
5 changes: 0 additions & 5 deletions iroh-net/src/magic_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,11 +412,6 @@ impl MagicEndpoint {
self.msock.conn_type_stream(node_id)
}

/// yolo
pub fn any_conn_type_stream(&self) -> Result<ConnectionTypeStream> {
self.msock.any_conn_type_stream()
}

/// Connect to a remote endpoint.
///
/// A [`NodeAddr`] is required. It must contain the [`NodeId`] to dial and may also contain a
Expand Down
5 changes: 0 additions & 5 deletions iroh-net/src/magicsock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1368,11 +1368,6 @@ impl MagicSock {
self.inner.node_map.conn_type_stream(node_id)
}

/// yolo
pub fn any_conn_type_stream(&self) -> Result<node_map::ConnectionTypeStream> {
self.inner.node_map.any_conn_type_stream()
}

/// Get the cached version of the Ipv4 and Ipv6 addrs of the current connection.
pub fn local_addr(&self) -> Result<(SocketAddr, Option<SocketAddr>)> {
Ok(self.inner.local_addr())
Expand Down
4 changes: 0 additions & 4 deletions iroh-net/src/magicsock/node_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,10 +435,6 @@ impl NodeMapInner {
}
}

fn any_conn_type_stream(&self) -> anyhow::Result<ConnectionTypeStream> {
todo!()
}

fn handle_pong(&mut self, sender: PublicKey, src: &DiscoMessageSource, pong: Pong) {
if let Some(ns) = self.get_mut(NodeStateKey::NodeId(&sender)).as_mut() {
let insert = ns.handle_pong(&pong, src.into());
Expand Down

0 comments on commit b923c31

Please sign in to comment.