This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Stop setting PL_lex_expect
authorFather Chrysostomos <sprout@cpan.org>
Fri, 22 Aug 2014 13:02:17 +0000 (06:02 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 25 Aug 2014 02:02:57 +0000 (19:02 -0700)
As of two commits ago, nothing uses its value any more.

sv.c
toke.c

diff --git a/sv.c b/sv.c
index e5e1620..761addb 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -12364,7 +12364,6 @@ Perl_parser_dup(pTHX_ const yy_parser *const proto, CLONE_PARAMS *const param)
                    (proto->lex_casemods < 12 ? 12 : proto->lex_casemods));
     parser->lex_defer  = proto->lex_defer;
     parser->lex_dojoin = proto->lex_dojoin;
-    parser->lex_expect = proto->lex_expect;
     parser->lex_formbrack = proto->lex_formbrack;
     parser->lex_inpat  = proto->lex_inpat;
     parser->lex_inwhat = proto->lex_inwhat;
diff --git a/toke.c b/toke.c
index d1325b3..398bd7b 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -1909,7 +1909,6 @@ S_force_next(pTHX_ I32 type)
     PL_nexttoke++;
     if (PL_lex_state != LEX_KNOWNEXT) {
        PL_lex_defer = PL_lex_state;
-       PL_lex_expect = PL_expect;
        PL_lex_state = LEX_KNOWNEXT;
     }
 }