From 1fe40b7cc5e92105f636d670d77b059fe4a4c50b Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 3 Oct 2001 07:19:19 +0000 Subject: * marshal.c (r_object): better allocation type check for TYPE_UCLASS. usage of allocation framework is disabled for now. * variable.c (rb_class_path): Module may have subclass. * string.c (rb_str_update): should maintain original negative offset. * string.c (rb_str_subpat_set): ditto * string.c (rb_str_aset): ditto. * re.c (rb_reg_nth_match): should check negative nth. * re.c (rb_reg_nth_defined): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- time.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'time.c') diff --git a/time.c b/time.c index ba3557da9a..ff52fdc578 100644 --- a/time.c +++ b/time.c @@ -60,18 +60,6 @@ time_s_now(klass) return obj; } -static VALUE -time_s_new(argc, argv, klass) - int argc; - VALUE *argv; - VALUE klass; -{ - VALUE obj = time_s_now(klass); - - rb_obj_call_init(obj, argc, argv); - return obj; -} - static VALUE time_new_internal(klass, sec, usec) VALUE klass; @@ -1212,7 +1200,7 @@ Init_Time() rb_include_module(rb_cTime, rb_mComparable); rb_define_singleton_method(rb_cTime, "now", time_s_now, 0); - rb_define_singleton_method(rb_cTime, "new", time_s_new, -1); + rb_define_singleton_method(rb_cTime, "allocate", time_s_now, 0); rb_define_singleton_method(rb_cTime, "at", time_s_at, -1); rb_define_singleton_method(rb_cTime, "utc", time_s_mkutc, -1); rb_define_singleton_method(rb_cTime, "gm", time_s_mkutc, -1); -- cgit v1.2.3