mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 01:37:59 +02:00
Remove redundant logic
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
0b5e30aa7b
commit
e263a3c27d
@ -1674,7 +1674,6 @@ sub copy1( $ ) {
|
|||||||
|
|
||||||
if ( $script || $debug ) {
|
if ( $script || $debug ) {
|
||||||
my ( $do_indent, $here_documents ) = ( 1, '');
|
my ( $do_indent, $here_documents ) = ( 1, '');
|
||||||
my $save_ifstack = $ifstack;
|
|
||||||
|
|
||||||
open_file( $_[0] );
|
open_file( $_[0] );
|
||||||
|
|
||||||
@ -1771,13 +1770,6 @@ sub copy1( $ ) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $ifstack < @ifstack ) {
|
|
||||||
$currentlinenumber = 'EOF';
|
|
||||||
fatal_error "Missing ?ENDIF to match the ?IF at line $ifstack[-1]->[3]";
|
|
||||||
} else {
|
|
||||||
$ifstack = $save_ifstack;
|
|
||||||
}
|
|
||||||
|
|
||||||
close_file;
|
close_file;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2265,11 +2257,6 @@ sub read_a_line(;$$$$) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( @ifstack > $ifstack ) {
|
|
||||||
$currentlinenumber = 'EOF';
|
|
||||||
fatal_error "Missing ?ENDIF to match the ?IF at line $ifstack[-1]->[3]";
|
|
||||||
}
|
|
||||||
|
|
||||||
close_file;
|
close_file;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user