Skip to content

Commit

Permalink
* parse.y (lambda): remove unused clause from the rule to stop
Browse files Browse the repository at this point in the history
  warning.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
matz committed Feb 24, 2007
1 parent 97d26f3 commit b2035db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Sat Feb 24 15:41:51 2007 Yukihiro Matsumoto <matz@ruby-lang.org>

* parse.y (lambda): remove unused clause from the rule to stop
warning.

Sat Feb 24 15:41:22 2007 Shugo Maeda <shugo@ruby-lang.org>

* lib/thread.rb: do not redefine Mutex#synchronize.
Expand Down
10 changes: 2 additions & 8 deletions parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -3217,21 +3217,15 @@ lambda : {
%*/
}
f_larglist
{
/*%%%*/
$<num>$ = vtable_size(lvtbl->dvars);
/*%
%*/
}
lambda_body
{
/*%%%*/
$$ = $2;
$$->nd_body = block_append($$->nd_body, $4);
$$->nd_body = block_append($$->nd_body, $3);
dyna_pop();
lpar_beg = $<num>1;
/*%
$$ = dispatch2(lambda, $2, $4);
$$ = dispatch2(lambda, $2, $3);
%*/
}
;
Expand Down

0 comments on commit b2035db

Please sign in to comment.