Cleanup2017: Delete unused function from fwhosts.cgi
Message ID | 1496903032-6427-1-git-send-email-alexander.marx@ipfire.org |
---|---|
State | Accepted |
Commit | e92436970635991f9e161da416c040a31ae23a5a |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (unknown [172.28.1.200]) by web02.ipfire.org (Postfix) with ESMTP id 0AB8861C91 for <patchwork@ipfire.org>; Thu, 8 Jun 2017 08:23:58 +0200 (CEST) Received: from mail01.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 25DE227E3; Thu, 8 Jun 2017 08:23:57 +0200 (CEST) Received: from EDV1.kappeln2011.lan (business-90-187-3-157.pool2.vodafone-ip.de [90.187.3.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 2154627E2; Thu, 8 Jun 2017 08:23:55 +0200 (CEST) From: Alexander Marx <alexander.marx@ipfire.org> To: development@lists.ipfire.org Subject: [PATCH] Cleanup2017: Delete unused function from fwhosts.cgi Date: Thu, 8 Jun 2017 08:23:52 +0200 Message-Id: <1496903032-6427-1-git-send-email-alexander.marx@ipfire.org> X-Mailer: git-send-email 2.7.4 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> List-Unsubscribe: <http://lists.ipfire.org/mailman/options/development>, <mailto:development-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/development/> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Subscribe: <http://lists.ipfire.org/mailman/listinfo/development>, <mailto:development-request@lists.ipfire.org?subject=subscribe> Errors-To: development-bounces@lists.ipfire.org Sender: "Development" <development-bounces@lists.ipfire.org> |
Message
Alexander Marx
June 8, 2017, 4:23 p.m. UTC
This function is not used by any other script.
Signed-off-by: Alexander Marx <alexander.marx@ipfire.org>
---
html/cgi-bin/fwhosts.cgi | 12 ------------
1 file changed, 12 deletions(-)
Comments
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 <alexander.marx@ipfire.org> > --- > 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);