mirror of
https://github.com/threefoldtech/mycelium.git
synced 2026-06-03 22:31:25 +00:00
Remove unused IPPubkeyMap::remove method
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
@@ -31,15 +31,6 @@ impl IpPubkeyMap {
|
||||
.insert(addr, subnet.prefix_len() as u32, (pk, ss));
|
||||
}
|
||||
|
||||
/// Remove the [`PublicKey`] and [`SharedSecret`] for a given [`Subnet`] from the map.
|
||||
pub fn remove(&mut self, subnet: Subnet) {
|
||||
let addr = match subnet.network() {
|
||||
IpAddr::V6(addr) => addr,
|
||||
_ => return,
|
||||
};
|
||||
self.inner.remove(addr, subnet.prefix_len() as u32);
|
||||
}
|
||||
|
||||
/// Look up the [`PublicKey`] and [`SharedSecret`] associated with an [`IpAddr`], if any is
|
||||
/// known in the map.
|
||||
pub fn lookup(&self, addr: Ipv6Addr) -> Option<&(PublicKey, SharedSecret)> {
|
||||
|
||||
Reference in New Issue
Block a user