summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-30 01:56:13 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-31 17:25:07 +0900
commit18ea81fd2c56e78df72aec54fcfb4de74adc17b3 (patch)
treedea43e8a78f0144743cd1824efbf70bac439ed93 /time.c
parent77e7082e824af8523c1e7c3bfc111c2e52e7e3b3 (diff)
get_tmopt is no longer used
Diffstat (limited to 'time.c')
-rw-r--r--time.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/time.c b/time.c
index 5588e28689..f2f5d173cb 100644
--- a/time.c
+++ b/time.c
@@ -2725,22 +2725,6 @@ rb_time_timespec_interval(VALUE num)
return time_timespec(num, TRUE);
}
-enum {
- TMOPT_IN,
- TMOPT_MAX_
-};
-
-static bool
-get_tmopt(VALUE opts, VALUE vals[TMOPT_MAX_])
-{
- ID ids[TMOPT_MAX_];
-
- if (NIL_P(opts)) return false;
- CONST_ID(ids[TMOPT_IN], "in");
- rb_get_kwargs(opts, ids, 0, TMOPT_MAX_, vals);
- return true;
-}
-
static VALUE
time_s_now(rb_execution_context_t *ec, VALUE klass, VALUE zone)
{
@@ -5878,7 +5862,6 @@ Init_Time(void)
#endif
rb_cTimeTM = Init_tm(rb_cTime, "tm");
- if (0) get_tmopt(Qnil, NULL);
}
#include "timev.rbinc"