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

ruby-changes:19098

From: tadf <ko1@a...>
Date: Mon, 21 Mar 2011 05:42:54 +0900 (JST)
Subject: [ruby-changes:19098] Ruby:r31137 (trunk): * ext/date/date_strftime.c: removed unused code and arguments.

tadf	2011-03-20 22:49:27 +0900 (Sun, 20 Mar 2011)

  New Revision: 31137

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

  Log:
    * ext/date/date_strftime.c: removed unused code and arguments.

  Modified files:
    trunk/ext/date/date_core.c

Index: ext/date/date_core.c
===================================================================
--- ext/date/date_core.c	(revision 31136)
+++ ext/date/date_core.c	(revision 31137)
@@ -2337,7 +2337,7 @@
 
 size_t
 date_strftime(char *s, size_t maxsize, const char *format,
-	      const struct vtm *vtm, VALUE timev, int gmt);
+	      const struct vtm *vtm, VALUE timev);
 
 #define SMALLBUF 100
 static size_t
@@ -2352,12 +2352,12 @@
 	return 0;
     }
     errno = 0;
-    len = date_strftime(*buf, SMALLBUF, format, vtm, timev, 0);
+    len = date_strftime(*buf, SMALLBUF, format, vtm, timev);
     if (len != 0 || (**buf == '\0' && errno != ERANGE)) return len;
     for (size=1024; ; size*=2) {
 	*buf = xmalloc(size);
 	(*buf)[0] = '\0';
-	len = date_strftime(*buf, size, format, vtm, timev, 0);
+	len = date_strftime(*buf, size, format, vtm, timev);
 	/*
 	 * buflen can be zero EITHER because there's not enough
 	 * room in the string, or because the control command

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

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