ruby-changes:49720
From: mame <ko1@a...>
Date: Mon, 15 Jan 2018 14:17:28 +0900 (JST)
Subject: [ruby-changes:49720] mame:r61837 (trunk): parse.y: Remove unused code comment blocks
mame 2018-01-15 14:17:18 +0900 (Mon, 15 Jan 2018) New Revision: 61837 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61837 Log: 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. Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 61836) +++ parse.y (revision 61837) @@ -1033,23 +1033,14 @@ top_stmts : none https://github.com/ruby/ruby/blob/trunk/parse.y#L1033 ; 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 https://github.com/ruby/ruby/blob/trunk/parse.y#L1127 | 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); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/