Remove unused RouteList::entry method

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
Lee Smet committed 2024-07-03 10:19:42 +02:00
1 parent c3fd23469f
commit 70ddd49053
1 file changed
-8
-8
View File
@@ -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