summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-24 06:48:05 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-24 06:48:05 +0000
commit7cf664fbafaaed903f0036343735bc680bb2c71b (patch)
treec4591a6f4e56f95066be89ff6c2e1847d8b8a0d1
parent02cf0326d3fa735c8f6215556043851fd855e765 (diff)
downloadruby-7cf664fbafaaed903f0036343735bc680bb2c71b.tar.gz
ruby-7cf664fbafaaed903f0036343735bc680bb2c71b.tar.xz
ruby-7cf664fbafaaed903f0036343735bc680bb2c71b.zip
* parse.y (lambda): remove unused clause from the rule to stop
warning. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--parse.y10
2 files changed, 7 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 71dc12b32..125090f59 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/parse.y b/parse.y
index dfba404da..d0a0df484 100644
--- a/parse.y
+++ b/parse.y
@@ -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);
%*/
}
;