summaryrefslogtreecommitdiff
path: root/perly.y
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-08-03 18:01:06 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-09-15 22:45:05 -0700
commit8d2a5fb44f375599c14c4c03cdec3954962a2ef5 (patch)
treef75989f257f2504440cb8ee161c655e71d9d4e89 /perly.y
parent2e800d795e15b864092072119d45b4d3b18b4c88 (diff)
downloadperl-8d2a5fb44f375599c14c4c03cdec3954962a2ef5.tar.gz
perly.y: Remove MYSUB
This token is not used any more.
Diffstat (limited to 'perly.y')
-rw-r--r--perly.y14
1 files changed, 1 insertions, 13 deletions
diff --git a/perly.y b/perly.y
index a6d2a7b45c..463e3daea4 100644
--- a/perly.y
+++ b/perly.y
@@ -84,7 +84,7 @@
%token <i_tkval> FUNC0 FUNC1 FUNC UNIOP LSTOP
%token <i_tkval> RELOP EQOP MULOP ADDOP
%token <i_tkval> DOLSHARP DO HASHBRACK NOAMP
-%token <i_tkval> LOCAL MY MYSUB REQUIRE
+%token <i_tkval> LOCAL MY REQUIRE
%token <i_tkval> COLONATTR FORMLBRACK FORMRBRACK
%type <ival> grammar remember mremember
@@ -364,18 +364,6 @@ barestmt: PLUGSTMT
#endif
intro_my();
}
- | MYSUB startsub subname proto subattrlist subbody
- {
- /* Unimplemented "my sub foo { }" */
- SvREFCNT_inc_simple_void(PL_compcv);
-#ifdef MAD
- $$ = newMYSUB($2, $3, $4, $5, $6);
- token_getmad($1,$$,'d');
-#else
- newMYSUB($2, $3, $4, $5, $6);
- $$ = (OP*)NULL;
-#endif
- }
| PACKAGE WORD WORD ';'
{
#ifdef MAD