diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-04 07:56:55 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-04 07:56:55 +0000 |
| commit | c936d43ad20a43ad9a972e8be5ceb65d61a38e82 (patch) | |
| tree | fb212412c85429bea509e16d0fa8ef7973245c09 | |
| parent | 23204cd896a90ef233f69d2172060aa50cb019f9 (diff) | |
| download | ruby-c936d43ad20a43ad9a972e8be5ceb65d61a38e82.tar.gz ruby-c936d43ad20a43ad9a972e8be5ceb65d61a38e82.tar.xz ruby-c936d43ad20a43ad9a972e8be5ceb65d61a38e82.zip | |
* time.c (Init_Time): remove obsolete Time::times.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | time.c | 16 |
2 files changed, 3 insertions, 17 deletions
@@ -1,4 +1,4 @@ -Thu Oct 4 16:54:00 2007 Yukihiro Matsumoto <matz@ruby-lang.org> +Thu Oct 4 16:55:40 2007 Yukihiro Matsumoto <matz@ruby-lang.org> * re.c (kcode_setter): Perl-ish global variable `$=' no longer effective. @@ -7,6 +7,8 @@ Thu Oct 4 16:54:00 2007 Yukihiro Matsumoto <matz@ruby-lang.org> * 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@ruby-lang.org> * encoding.c (rb_obj_encoding): returns encoding of the given object. @@ -1917,20 +1917,6 @@ time_strftime(VALUE time, VALUE format) } /* - * 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 @@ 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); |
