This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove support for assertions and -A
[perl5.git] / toke.c
diff --git a/toke.c b/toke.c
index 6959773..a375a77 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -4296,10 +4296,6 @@ Perl_yylex(pTHX)
                        sv_free(sv);
                        CvMETHOD_on(PL_compcv);
                    }
-                   else if (!PL_in_my && len == 9 && strnEQ(SvPVX(sv), "assertion", len)) {
-                       sv_free(sv);
-                       CvASSERTION_on(PL_compcv);
-                   }
                    /* After we've set the flags, it could be argued that
                       we don't need to do the attributes.pm-based setting
                       process, and shouldn't bother appending recognized