From: Michael Tremer Date: Sat, 23 Mar 2024 14:54:02 +0000 (+0100) Subject: general-functions.pl: Remove unused NextIP* functions X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c894af9681cdda144a134742a9419fe79889dacf;p=people%2Fms%2Fipfire-2.x.git general-functions.pl: Remove unused NextIP* functions Signed-off-by: Michael Tremer --- diff --git a/config/cfgroot/general-functions.pl b/config/cfgroot/general-functions.pl index 8d0aaea81..61a7eeadd 100644 --- a/config/cfgroot/general-functions.pl +++ b/config/cfgroot/general-functions.pl @@ -779,19 +779,6 @@ sub IpInSubnet { return &Network::ip_address_in_network($addr, "$network/$netmask"); } -# -# Return the following IP (IP+1) in dotted notation. -# Call: NextIP ('1.1.1.1'); -# Return: '1.1.1.2' -# -sub NextIP { - return &Network::find_next_ip_address(shift, 1); -} - -sub NextIP2 { - return &Network::find_next_ip_address(shift, 4); -} - sub ipcidr { my ($ip,$cidr) = &Net::IPv4Addr::ipv4_parse(shift); return "$ip\/$cidr";