This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regexec.c:regexec_flags: Remove unused var
authorFather Chrysostomos <sprout@cpan.org>
Sat, 27 Jul 2013 14:10:08 +0000 (07:10 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 25 Aug 2013 19:22:47 +0000 (12:22 -0700)
commitbf05793b4d0b88b38e2379fc326d791af6c2cab0
tree09d946713985a80baa4d2630ec7670aa566c4bff
parent25fdce4a165b6305e760d4c8d94404ce055657a0
regexec.c:regexec_flags: Remove unused var

This variable, end_shift, only ever holds the value 0.  It is used in
only one place, where its value is assigned to another variable.

The history is interesting:

start_shift and end_shift were added in c277df42229, which added sub-
string optimisations.  146174a91a192 rearranged stuff a bit, causing
these variables to be unused.  155aba94f6 commented out the unused
start_shift to suppress a compiler warning.  1df70142a966e remove=
the start_shift comment, leaving the comment describing end_shift
nonsensical.
regexec.c