1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
mame 2018-01-15 05:17:18 +00:00
parent 39ee36f63d
commit 52a5f76e8b

21
parse.y
View file

@ -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);