]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
ipblocklist-functions.pl: Drop _calculate_hashsize() function.
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 14 Apr 2023 16:01:53 +0000 (18:01 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 3 Mar 2024 11:56:02 +0000 (12:56 +0100)
This function is part of the ipset-functions library and is not
longer required here.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/ipblocklist-functions.pl

index 7fd3a118748999839792005fe5c98f632a399da7..31810b64ee1209b04d3f5932dea6bd4a9cfd2905 100644 (file)
@@ -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)
 ##