diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-15 05:17:18 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-15 05:17:18 +0000 |
commit | 52a5f76e8b1ab02ee6e259a7cff9e8c5475744e8 (patch) | |
tree | 4e7c650286ea93156f68ea85e26cbbc42f655b8b | |
parent | 39ee36f63d94c7648a37472f2afa6cce9eb8405b (diff) |
parse.y: Remove unused code comment blocks
The code fragments were commented out in YARV merge era.
I believe that it will be never needed in near future.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | parse.y | 21 |
1 files changed, 3 insertions, 18 deletions
@@ -1033,23 +1033,14 @@ top_stmts : none ; top_stmt : stmt - | keyword_BEGIN - { - /*%%%*/ - /* local_push(p, 0); */ - /*% - %*/ - } - '{' top_compstmt '}' + | keyword_BEGIN '{' top_compstmt '}' { /*%%%*/ p->eval_tree_begin = block_append(p, p->eval_tree_begin, - NEW_BEGIN($4, &@$)); - /* NEW_PREEXE($4)); */ - /* local_pop(p); */ + NEW_BEGIN($3, &@$)); $$ = NEW_BEGIN(0, &@$); /*% - $$ = dispatch1(BEGIN, $4); + $$ = dispatch1(BEGIN, $3); %*/ } ; @@ -1136,18 +1127,12 @@ stmt_or_begin : stmt | keyword_BEGIN { yyerror1(&@1, "BEGIN is permitted only at toplevel"); - /*%%%*/ - /* local_push(p, 0); */ - /*% - %*/ } '{' top_compstmt '}' { /*%%%*/ p->eval_tree_begin = block_append(p, p->eval_tree_begin, $4); - /* NEW_PREEXE($4)); */ - /* local_pop(p); */ $$ = NEW_BEGIN(0, &@$); /*% $$ = dispatch1(BEGIN, $4); |