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

ruby-changes:2128

From: ko1@a...
Date: 4 Oct 2007 16:57:12 +0900
Subject: [ruby-changes:2128] matz - Ruby:r13619 (trunk): * time.c (Init_Time): remove obsolete Time::times.

matz	2007-10-04 16:56:55 +0900 (Thu, 04 Oct 2007)

  New Revision: 13619

  Modified files:
    trunk/ChangeLog
    trunk/time.c

  Log:
    * time.c (Init_Time): remove obsolete Time::times.

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/time.c?r1=13619&r2=13618
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13619&r2=13618

Index: time.c
===================================================================
--- time.c	(revision 13618)
+++ time.c	(revision 13619)
@@ -1917,20 +1917,6 @@
 }
 
 /*
- *  call-seq:
- *     Time.times => struct_tms
- *  
- *  Deprecated in favor of <code>Process::times</code>
- */
-
-static VALUE
-time_s_times(VALUE obj)
-{
-    rb_warn("obsolete method Time::times; use Process::times");
-    return rb_proc_times(obj);
-}
-
-/*
  * undocumented
  */
 
@@ -2100,8 +2086,6 @@
     rb_define_singleton_method(rb_cTime, "local", time_s_mktime, -1);
     rb_define_singleton_method(rb_cTime, "mktime", time_s_mktime, -1);
 
-    rb_define_singleton_method(rb_cTime, "times", time_s_times, 0);
-
     rb_define_method(rb_cTime, "to_i", time_to_i, 0);
     rb_define_method(rb_cTime, "to_f", time_to_f, 0);
     rb_define_method(rb_cTime, "<=>", time_cmp, 1);
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 13618)
+++ ChangeLog	(revision 13619)
@@ -1,4 +1,4 @@
-Thu Oct  4 16:54:00 2007  Yukihiro Matsumoto  <matz@r...>
+Thu Oct  4 16:55:40 2007  Yukihiro Matsumoto  <matz@r...>
 
 	* re.c (kcode_setter): Perl-ish global variable `$=' no longer
 	  effective.
@@ -7,6 +7,8 @@
 
 	* re.c (Init_Regexp): remove obsolete const alias: MatchingData.
 
+	* time.c (Init_Time): remove obsolete Time::times.
+
 Thu Oct  4 16:28:33 2007  Nobuyoshi Nakada  <nobu@r...>
 
 	* encoding.c (rb_obj_encoding): returns encoding of the given object.

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

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