[前][次][番号順一覧][スレッド一覧]

ruby-changes:64688

From: Nobuyoshi <ko1@a...>
Date: Thu, 31 Dec 2020 18:20:55 +0900 (JST)
Subject: [ruby-changes:64688] 18ea81fd2c (master): get_tmopt is no longer used

https://git.ruby-lang.org/ruby.git/commit/?id=18ea81fd2c

From 18ea81fd2c56e78df72aec54fcfb4de74adc17b3 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 30 Dec 2020 01:56:13 +0900
Subject: get_tmopt is no longer used


diff --git a/time.c b/time.c
index 5588e28..f2f5d17 100644
--- a/time.c
+++ b/time.c
@@ -2725,22 +2725,6 @@ rb_time_timespec_interval(VALUE num) https://github.com/ruby/ruby/blob/trunk/time.c#L2725
     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) https://github.com/ruby/ruby/blob/trunk/time.c#L5862
 #endif
 
     rb_cTimeTM = Init_tm(rb_cTime, "tm");
-    if (0) get_tmopt(Qnil, NULL);
 }
 
 #include "timev.rbinc"
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]