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

ruby-changes:62717

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Thu, 27 Aug 2020 15:03:21 +0900 (JST)
Subject: [ruby-changes:62717] 3437e6247d (master): RClassDeprecated: delete

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

From 3437e6247da991db94a804b2c15b2a05dc2d79bd 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: Wed, 22 Jul 2020 10:40:41 +0900
Subject: RClassDeprecated: delete

It has been deprecated for 5 years since 1f2255604087e9a7d7efcb2df61b5ca0e2daa200.

diff --git a/include/ruby/backward.h b/include/ruby/backward.h
index 84abba2..d8ea12b 100644
--- a/include/ruby/backward.h
+++ b/include/ruby/backward.h
@@ -8,19 +8,10 @@ https://github.com/ruby/ruby/blob/trunk/include/ruby/backward.h#L8
  *             modify this file, provided that  the conditions mentioned in the
  *             file COPYING are met.  Consult the file for details.
  */
-#include "ruby/internal/core/rbasic.h"
 #include "ruby/internal/value.h"
 #include "ruby/internal/interpreter.h"
 #include "ruby/backward/2/attributes.h"
 
-#define RClass RClassDeprecated
-#ifndef __cplusplus
-DEPRECATED_TYPE(("RClass is internal use only"),
-struct RClass {
-    struct RBasic basic;
-});
-#endif
-
 #define DECLARE_DEPRECATED_FEATURE(ver, func) \
     NORETURN(ERRORFUNC(("deprecated since "#ver), DEPRECATED(void func(void))))
 
diff --git a/internal/class.h b/internal/class.h
index 816a304..bb12825 100644
--- a/internal/class.h
+++ b/internal/class.h
@@ -16,10 +16,6 @@ https://github.com/ruby/ruby/blob/trunk/internal/class.h#L16
 #include "ruby/intern.h"        /* for rb_alloc_func_t */
 #include "ruby/ruby.h"          /* for struct RBasic */
 
-#ifdef RClass
-# undef RClass /* See also include/ruby/backward.h */
-#endif
-
 #ifdef RCLASS_SUPER
 # undef RCLASS_SUPER
 #endif
-- 
cgit v0.10.2


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

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