From 70ddd4905375cdb5e0a6cbab6072cb3fac9e90bc Mon Sep 17 00:00:00 2001 From: Lee Smet Date: Wed, 3 Jul 2024 10:19:42 +0200 Subject: [PATCH] Remove unused RouteList::entry method Signed-off-by: Lee Smet --- mycelium/src/routing_table.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/mycelium/src/routing_table.rs b/mycelium/src/routing_table.rs index e6ab3cf..6ee87f7 100644 --- a/mycelium/src/routing_table.rs +++ b/mycelium/src/routing_table.rs @@ -57,14 +57,6 @@ impl RouteList { self.list.is_empty() } - /// Get a reference to the [`RouteEntry`] specified by the [`RouteKey`] from the list. - pub fn entry(&self, route_key: &RouteKey) -> Option<&RouteEntry> { - self.list - .iter() - .map(|(_, e)| e) - .find(|entry| entry.neighbour() == route_key.neighbour()) - } - /// Returns the selected route for the [`Subnet`] this is the `RouteList` for, if one exists. pub fn selected(&self) -> Option<&RouteEntry> { self.list