From: Stefan Schantl Date: Fri, 14 Apr 2023 16:01:53 +0000 (+0200) Subject: ipblocklist-functions.pl: Drop _calculate_hashsize() function. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6f5412c8d0cb312b7689d2553907f1a3e2f49801;p=people%2Fstevee%2Fipfire-2.x.git ipblocklist-functions.pl: Drop _calculate_hashsize() function. This function is part of the ipset-functions library and is not longer required here. Signed-off-by: Stefan Schantl --- diff --git a/config/cfgroot/ipblocklist-functions.pl b/config/cfgroot/ipblocklist-functions.pl index 7fd3a1187..31810b64e 100644 --- a/config/cfgroot/ipblocklist-functions.pl +++ b/config/cfgroot/ipblocklist-functions.pl @@ -401,19 +401,6 @@ sub parse_dshield( $ ) { return "$1/$2"; } -# -## Helper function to proper calculate the hashsize. -# -sub _calculate_hashsize($) { - my ($list_entries) = @_; - - my $hashsize = 1; - $hashsize <<= 1 while ($hashsize < $list_entries); - - # Return the calculated hashsize. - return $hashsize; -} - # ## sub get_holdoff_rate(list) ##