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

ruby-changes:64447

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Tue, 22 Dec 2020 13:52:33 +0900 (JST)
Subject: [ruby-changes:64447] fee2913d0a (master): Struct::Tms: delete

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

From fee2913d0af894492542cc0ed5e45dbf00e8f8df Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
 <shyouhei@r...>
Date: Tue, 28 Jul 2020 11:03:00 +0900
Subject: Struct::Tms: delete

Has been deprecated since 44c53ee473d3b3973cb5c3ce03fbf4f280fd75ff.

diff --git a/process.c b/process.c
index 2198b9a..8fd9add 100644
--- a/process.c
+++ b/process.c
@@ -8974,9 +8974,6 @@ InitVM_process(void) https://github.com/ruby/ruby/blob/trunk/process.c#L8974
 #if defined(HAVE_TIMES) || defined(_WIN32)
     /* Placeholder for rusage */
     rb_cProcessTms = rb_struct_define_under(rb_mProcess, "Tms", "utime", "stime", "cutime", "cstime", NULL);
-    /* An obsolete name of Process::Tms for backward compatibility */
-    rb_define_const(rb_cStruct, "Tms", rb_cProcessTms);
-    rb_deprecate_constant(rb_cStruct, "Tms");
 #endif
 
     SAVED_USER_ID = geteuid();
-- 
cgit v0.10.2


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

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