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

ruby-changes:42170

From: nobu <ko1@a...>
Date: Thu, 24 Mar 2016 13:27:40 +0900 (JST)
Subject: [ruby-changes:42170] nobu:r54244 (trunk): date_core.c: unused variable

nobu	2016-03-24 13:27:35 +0900 (Thu, 24 Mar 2016)

  New Revision: 54244

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54244

  Log:
    date_core.c: unused variable
    
    * ext/date/date_core.c (dt_lite_jisx0301): remove no longer used
      variable.

  Modified files:
    trunk/ext/date/date_core.c
Index: ext/date/date_core.c
===================================================================
--- ext/date/date_core.c	(revision 54243)
+++ ext/date/date_core.c	(revision 54244)
@@ -8389,11 +8389,8 @@ dt_lite_jisx0301(int argc, VALUE *argv, https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L8389
     if (argc >= 1)
 	n = NUM2LONG(argv[0]);
 
-    {
-	get_d1(self);
-	return rb_str_append(d_lite_jisx0301(self),
-			     iso8601_timediv(self, n));
-    }
+    return rb_str_append(d_lite_jisx0301(self),
+			 iso8601_timediv(self, n));
 }
 
 /* conversions */

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

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