[前][次][番号順一覧][スレッド一覧]

ruby-changes:23496

From: ko1 <ko1@a...>
Date: Sun, 6 May 2012 18:40:58 +0900 (JST)
Subject: [ruby-changes:23496] ko1:r35547 (trunk): * compile.c (iseq_compile_each): remove unused variable `size'.

ko1	2012-05-06 18:40:47 +0900 (Sun, 06 May 2012)

  New Revision: 35547

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35547

  Log:
    * compile.c (iseq_compile_each): remove unused variable `size'.

  Modified files:
    trunk/ChangeLog
    trunk/compile.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 35546)
+++ ChangeLog	(revision 35547)
@@ -1,3 +1,7 @@
+Sun May  6 18:39:39 2012  Koichi Sasada  <ko1@a...>
+
+	* compile.c (iseq_compile_each): remove unused variable `size'.
+
 Sun May  6 14:50:03 2012  Tanaka Akira  <akr@f...>
 
 	* lib/securerandom.rb: show actual read length in an error message.
Index: compile.c
===================================================================
--- compile.c	(revision 35546)
+++ compile.c	(revision 35547)
@@ -4371,13 +4371,12 @@
       }
       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;
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]