Cleanup of Optimize 16 change

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2020-04-21 13:02:56 -07:00
parent e14798b4a2
commit 39de88563f
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -4218,7 +4218,7 @@ sub get_multi_sports( $ ) {
}
#
# Return an array of keys for the passed rule. 'dport', 'comment', and 'origin' are omitted;
# Return an array of keys for the passed rule. 'dport', 'comment', 'origin' and 'digest' are omitted;
#
sub get_keys( $ ) {
my %skip = ( dport => 1, comment => 1, origin => 1, digest => 1 );
@ -4432,7 +4432,6 @@ sub delete_duplicates {
last unless $ruleref->{mode} == CAT_MODE;
next unless $digest eq $ruleref->{digest};
my $keynum = 0;
unless ( $adjacent > 0 ) {
#
@ -4487,7 +4486,7 @@ sub get_conntrack( $ ) {
}
#
# Return an array of keys for the passed rule. 'conntrack', 'comment' & 'origin' are omitted;
# Return an array of keys for the passed rule. 'conntrack', 'comment', 'origin' and 'digest' are omitted;
#
sub get_keys1( $ ) {
my %skip = ( comment => 1, origin => 1 , digest => 1, 'conntrack --ctstate' => 1 );