diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-06 09:40:47 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-06 09:40:47 +0000 |
commit | 6051f542608d2fa86c84f45aeae847022550dfcc (patch) | |
tree | fb4976438f5413ff7b02238955ef3c059bc5ec0c | |
parent | 0a983d5a5838496709dd59c5904a8cf65b810f11 (diff) |
* compile.c (iseq_compile_each): remove unused variable `size'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | compile.c | 3 |
2 files changed, 5 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Sun May 6 18:39:39 2012 Koichi Sasada <ko1@atdot.net> + + * compile.c (iseq_compile_each): remove unused variable `size'. + Sun May 6 14:50:03 2012 Tanaka Akira <akr@fsij.org> * lib/securerandom.rb: show actual read length in an error message. @@ -4371,13 +4371,12 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped) } case NODE_HASH:{ DECL_ANCHOR(list); - VALUE size = 0; int type = node->nd_head ? nd_type(node->nd_head) : NODE_ZARRAY; INIT_ANCHOR(list); switch (type) { case NODE_ARRAY: - size = INT2FIX(compile_array(iseq, list, node->nd_head, COMPILE_ARRAY_TYPE_HASH)); + compile_array(iseq, list, node->nd_head, COMPILE_ARRAY_TYPE_HASH); ADD_SEQ(ret, list); break; |