From 730c1d034a641b716b362d95a04e670c828e8652 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Wed, 3 Feb 2016 08:41:24 +0100 Subject: [PATCH] Drop obsolete IsValidAddressOrNetwork() function. This function is not longer used, because during converting a given address or network the input will be validated, so there is no need for this function anymore. Signed-off-by: Stefan Schantl --- modules/Base.pm | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/modules/Base.pm b/modules/Base.pm index 194cb96..1aa1d2f 100644 --- a/modules/Base.pm +++ b/modules/Base.pm @@ -118,23 +118,6 @@ sub FilePositions (\%\%) { return %new_file_positions; } -# -## Wrapper function for IP address and network validation. -# -## This wrapper function uses the external Net::IP perl module to -## check if a given input is a valid IPv4/IPv6 address or network. -# -sub IsValidAddressOrNetwork ($) { - my $address = shift; - - # Check if the address is a valid IPv4/IPv6 address or network. - # Return "undef" False if the address is not valid. - my $ip = new Net::IP ($address) || return undef; - - # If we got here, the address is valid. Return True. - return 1; -} - # ## Address/Network to binary format caluculator function. # -- 2.39.2