diff options
author | Karl Williamson <khw@cpan.org> | 2021-06-30 11:33:08 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2021-08-07 04:46:45 -0600 |
commit | 933716a479d92e1c492a5e6f425c76c621c06f8b (patch) | |
tree | c2b826450b0c8b467853712a723222757aed4ddd /regen/regcharclass.pl | |
parent | 1dff551d79b00d841b88282abc2e1fa43adaff5b (diff) | |
download | perl-933716a479d92e1c492a5e6f425c76c621c06f8b.tar.gz |
regcharclass.pl: Rmv unused variable
Diffstat (limited to 'regen/regcharclass.pl')
-rwxr-xr-x | regen/regcharclass.pl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/regen/regcharclass.pl b/regen/regcharclass.pl index 9fc939fdef..ae587d9952 100755 --- a/regen/regcharclass.pl +++ b/regen/regcharclass.pl @@ -1177,7 +1177,6 @@ sub _cond_as_str { # Here, there was no entire-class optimization that was clearly better # than doing things by ranges. Look at each range. - my $range_count_extra = 0; for (my $i = $loop_start; $i < $loop_end; $i++) { if (! ref $ranges[$i]) { # Trivial case: no range $ranges[$i] = $self->val_fmt($ranges[$i]) . " == $test"; @@ -1198,7 +1197,7 @@ sub _cond_as_str { # ranges (some of which could be cut down by using a mask for just it). # We return whichever method uses the fewest branches. return "( " - . join( " || ", (@masks && @masks < @ranges + $range_count_extra) + . join( " || ", (@masks && @masks < @ranges) ? @masks : @ranges) . " )"; |