Skip to content

Commit

Permalink
Remove build_regexes
Browse files Browse the repository at this point in the history
  • Loading branch information
petdance committed Dec 8, 2024
1 parent 9dcc284 commit 05e7fd4
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 41 deletions.
2 changes: 0 additions & 2 deletions ack
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,6 @@ MAIN: {
$stats{search_re} = $search_re;
$stats{scan_re} = $scan_re;
$stats{search_not_re} = $search_not_re;

App::Ack::build_regexes( $opt_regex, $opt->{and}, $opt->{or}, $opt->{not} );
}
my @start;
if ( not defined $opt->{files_from} ) {
Expand Down
17 changes: 0 additions & 17 deletions lib/App/Ack.pm
Original file line number Diff line number Diff line change
Expand Up @@ -850,21 +850,4 @@ sub build_search_not_re {
}


sub build_regexes {
my $regex = shift;
my $opt_and = shift;
my $opt_or = shift;
my $opt_not = shift;


my $match;
my $scan;
my $highlight;

$match = qr/$regex/;

return ($match, $scan, $highlight);
}


1; # End of App::Ack
20 changes: 0 additions & 20 deletions t/build_regexes.t

This file was deleted.

2 changes: 0 additions & 2 deletions tags
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ PIPE_INTO_ACK t/from-stdin.t /^PIPE_INTO_ACK: {$/;" l
PIPE_INTO_DASH_C t/from-stdin.t /^PIPE_INTO_DASH_C: {$/;" l
PIPE_INTO_DASH_I t/from-stdin.t /^PIPE_INTO_DASH_I: {$/;" l
PLAIN t/build_regex.t /^PLAIN: {$/;" l
PLAIN t/build_regexes.t /^PLAIN: {$/;" l
POSTMATCH t/ack-output.t /^POSTMATCH: {$/;" l
POSTMATCH_MULTIPLE_FILES t/ack-output.t /^POSTMATCH_MULTIPLE_FILES: {$/;" l
PREMATCH t/ack-output.t /^PREMATCH: {$/;" l
Expand Down Expand Up @@ -296,7 +295,6 @@ basename lib/App/Ack/File.pm /^sub basename {$/;" s
bisect dev/find-minimum-dep-versions.pl /^sub bisect (&@) {$/;" s
build_ack_invocation t/Util.pm /^sub build_ack_invocation {$/;" s
build_regex lib/App/Ack.pm /^sub build_regex {$/;" s
build_regexes lib/App/Ack.pm /^sub build_regexes {$/;" s
build_search_not_re lib/App/Ack.pm /^sub build_search_not_re {$/;" s
caret_X t/Util.pm /^sub caret_X {$/;" s
cathy lib/App/Ack.pm /^sub cathy {$/;" s
Expand Down

0 comments on commit 05e7fd4

Please sign in to comment.