Skip to content

Commit bfc4dfe

Browse files
committed
feat(config): remove unused method
Signed-off-by: Fredi Raspall <fredi@githedgehog.com>
1 parent 286cc6f commit bfc4dfe

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

config/src/external/overlay/vpcpeering.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -236,21 +236,6 @@ impl VpcExpose {
236236
}
237237
}
238238

239-
// If the as_range list is empty, then there's no NAT required for the expose, meaning that the
240-
// public IPs are those from the "ips" list. This method returns a mutable reference to the current list of public IPs
241-
// for the VpcExpose.
242-
#[must_use]
243-
pub fn public_ips_mut(&mut self) -> &mut BTreeSet<PrefixWithOptionalPorts> {
244-
let Some(nat) = self.nat.as_mut() else {
245-
return &mut self.ips;
246-
};
247-
if nat.as_range.is_empty() {
248-
&mut self.ips
249-
} else {
250-
&mut nat.as_range
251-
}
252-
}
253-
254239
// Same as public_ips, but returns the list of excluded prefixes
255240
#[must_use]
256241
pub fn public_excludes(&self) -> &BTreeSet<PrefixWithOptionalPorts> {

0 commit comments

Comments
 (0)