Skip to content

Commit

Permalink
Remove old code that I do not think is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
petdance committed Nov 25, 2024
1 parent c2eba9f commit bcdb7e9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ack
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,6 @@ MAIN: {
$stats{scan_re} = $scan_re;
$stats{search_not_re} = $search_not_re;
}
# XXX What is this checking for?
if ( $search_re && $search_re =~ /\n/ ) {
App::Ack::exit_from_ack( 0 );
}
my @start;
if ( not defined $opt->{files_from} ) {
@start = @ARGV;
Expand Down Expand Up @@ -399,6 +395,7 @@ sub _compile_descend_filter {
};
}


sub _compile_file_filter {
my ( $opt, $start ) = @_;

Expand Down Expand Up @@ -505,7 +502,7 @@ sub _compile_file_filter {
$match_found = 0;
}
return $match_found;
};
}; # End of compiled sub
}


Expand All @@ -530,6 +527,7 @@ sub get_file_id {
}
}


# Returns a regex object based on a string and command-line options.
# Dies when the regex $str is undefined (i.e. not given on command line).

Expand Down

0 comments on commit bcdb7e9

Please sign in to comment.