public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] Cleanup2017: Delete unused function from fwhosts.cgi
@ 2017-06-08  6:23 Alexander Marx
  2017-06-08 14:14 ` Michael Tremer
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Marx @ 2017-06-08  6:23 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 784 bytes --]

This function is not used by any other script.

Signed-off-by: Alexander Marx <alexander.marx(a)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);
-- 
2.7.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-08 14:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-08  6:23 [PATCH] Cleanup2017: Delete unused function from fwhosts.cgi Alexander Marx
2017-06-08 14:14 ` Michael Tremer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox