From 7b28e82f6fe94a67c20d4f519f81c4c5341fd20f Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 4 Oct 2007 07:56:55 +0000 Subject: * time.c (Init_Time): remove obsolete Time::times. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- time.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'time.c') diff --git a/time.c b/time.c index 59237f151b..c48bc3bcfc 100644 --- a/time.c +++ b/time.c @@ -1916,20 +1916,6 @@ time_strftime(VALUE time, VALUE format) return str; } -/* - * call-seq: - * Time.times => struct_tms - * - * Deprecated in favor of Process::times - */ - -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 @@ Init_Time(void) 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); -- cgit v1.2.3