From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: [PATCH] Cleanup2017: Delete unused function from fwhosts.cgi Date: Thu, 08 Jun 2017 15:14:07 +0100 Message-ID: <1496931247.21214.13.camel@ipfire.org> In-Reply-To: <1496903032-6427-1-git-send-email-alexander.marx@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2845784546475601194==" List-Id: --===============2845784546475601194== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Hey, yes indeed. There is much more where this one came from... -Michael On Thu, 2017-06-08 at 08:23 +0200, Alexander Marx wrote: > This function is not used by any other script. > > Signed-off-by: Alexander Marx > --- >  html/cgi-bin/fwhosts.cgi | 12 ------------ >  1 file changed, 12 deletions(-) > > diff --git a/html/cgi-bin/fwhosts.cgi b/html/cgi-bin/fwhosts.cgi > index 25ab489..a2ade8a 100644 > --- a/html/cgi-bin/fwhosts.cgi > +++ b/html/cgi-bin/fwhosts.cgi > @@ -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); --===============2845784546475601194== Content-Type: application/pgp-signature Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="signature.asc" MIME-Version: 1.0 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjIKCmlRSWNCQUFC Q2dBR0JRSlpPVnV2QUFvSkVJQjU4UDl2a0FrSFBITVFBTGFwcGZNRktVNkFCK25VOGNUMnR4aHkK YkZxYTdScStMY3pwUVVwWVU2WmVlUnVsQnAwWWpsemZOaEVIakRkQk5UUDA3NzRTVmlDdmZ5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