Skip to content

Commit

Permalink
remove unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
t4lz committed Dec 31, 2024
1 parent cb95652 commit 4be896d
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions mirrord/agent/src/steal/subscriptions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,22 +233,6 @@ impl IpTablesRedirector {
}
}

pub(crate) fn get_ipv4_listener_mut(&mut self) -> Option<&mut IptablesListener> {
match self {
IpTablesRedirector::Ipv6Only(_) => None,
IpTablesRedirector::Dual { ipv4_listener, .. }
| IpTablesRedirector::Ipv4Only(ipv4_listener) => Some(ipv4_listener),
}
}

pub(crate) fn get_ipv6_listener_mut(&mut self) -> Option<&mut IptablesListener> {
match self {
IpTablesRedirector::Ipv4Only(_) => None,
IpTablesRedirector::Dual { ipv6_listener, .. }
| IpTablesRedirector::Ipv6Only(ipv6_listener) => Some(ipv6_listener),
}
}

pub(crate) fn get_listeners_mut(
&mut self,
) -> (Option<&mut IptablesListener>, Option<&mut IptablesListener>) {
Expand Down

0 comments on commit 4be896d

Please sign in to comment.