]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Delete unused function from fwhosts.cgi
authorAlexander Marx <alexander.marx@ipfire.org>
Thu, 8 Jun 2017 06:23:52 +0000 (08:23 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 14 Jun 2017 14:52:33 +0000 (15:52 +0100)
This function is not used by any other script.

Signed-off-by: Alexander Marx <alexander.marx@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/fwhosts.cgi

index 25ab489ea9f656106046e8bb5e004a689d3eb83c..a2ade8a202f30cafc9592e632f638df7b45b888d 100644 (file)
@@ -2555,18 +2555,6 @@ sub checkip
        }
        return 1;
 }
-sub checksubnet
-{
-       my %hash=%{(shift)};
-       &General::readhasharray("$confignet", \%hash);
-       foreach my $key (keys %hash) {
-               if(&General::IpInSubnet($fwhostsettings{'IP'},$hash{$key}[1],$hash{$key}[2]))
-               {
-                       return 1;
-               }
-       }
-       return 0;
-}
 sub checkservicegroup
 {
        &General::readhasharray("$configsrvgrp", \%customservicegrp);