summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-time/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-08-15 01:37:03 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2013-08-15 01:37:03 +0900
commitb12d9a8700ce730da38ec63591944ca6ac6b42ba (patch)
tree1ea0253b67e83b36ce062237451ad345a9cd40c1 /mrbgems/mruby-time/src
parentb225e4cc82f0e727b6175306e530efc2a59f4e95 (diff)
downloadmruby-b12d9a8700ce730da38ec63591944ca6ac6b42ba.tar.gz
mruby-b12d9a8700ce730da38ec63591944ca6ac6b42ba.zip
remove alloc from Time class
Diffstat (limited to 'mrbgems/mruby-time/src')
-rw-r--r--mrbgems/mruby-time/src/time.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/mrbgems/mruby-time/src/time.c b/mrbgems/mruby-time/src/time.c
index 3948a64fa..2ec352925 100644
--- a/mrbgems/mruby-time/src/time.c
+++ b/mrbgems/mruby-time/src/time.c
@@ -174,13 +174,6 @@ mrb_time_make(mrb_state *mrb, struct RClass *c, double sec, double usec, enum mr
return mrb_time_wrap(mrb, c, time_alloc(mrb, sec, usec, timezone));
}
-/* Allocates a mrb_time object and initializes it. */
-static mrb_value
-mrb_time_alloc(mrb_state *mrb, mrb_value cv)
-{
- return mrb_time_make(mrb, mrb_class_ptr(cv), 0, 0, MRB_TIMEZONE_NONE);
-}
-
static struct mrb_time*
current_mrb_time(mrb_state *mrb)
{
@@ -670,7 +663,6 @@ mrb_mruby_time_gem_init(mrb_state* mrb)
tc = mrb_define_class(mrb, "Time", mrb->object_class);
MRB_SET_INSTANCE_TT(tc, MRB_TT_DATA);
mrb_include_module(mrb, tc, mrb_class_get(mrb, "Comparable"));
- mrb_define_class_method(mrb, tc, "alloc", mrb_time_alloc, MRB_ARGS_NONE());
mrb_define_class_method(mrb, tc, "at", mrb_time_at, MRB_ARGS_ANY()); /* 15.2.19.6.1 */
mrb_define_class_method(mrb, tc, "gm", mrb_time_gm, MRB_ARGS_ARG(1,6)); /* 15.2.19.6.2 */
mrb_define_class_method(mrb, tc, "local", mrb_time_local, MRB_ARGS_ARG(1,6)); /* 15.2.19.6.3 */