summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-22 01:00:43 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-22 02:51:49 +0900
commit8918a9cf6c65409ae1ffcdea324a1b97c6e5bb70 (patch)
tree21d993f31deddd50f3bc717be2ddce433db0d9f0 /object.c
parentc30f03d32833f38fedf41ecb08f1ade9c6657fef (diff)
Removed rb_cData entity
* Use the wrapper of rb_cObject instead of data access * Replaced rest of extentions * Updated the version guard for Data * Added the version guard of rb_cData
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3961
Diffstat (limited to 'object.c')
-rw-r--r--object.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/object.c b/object.c
index bf65254f54..6d45e25836 100644
--- a/object.c
+++ b/object.c
@@ -32,7 +32,6 @@
#include "internal/struct.h"
#include "internal/symbol.h"
#include "internal/variable.h"
-#include "internal/warnings.h"
#include "probes.h"
#include "ruby/encoding.h"
#include "ruby/st.h"
@@ -4331,25 +4330,6 @@ f_sprintf(int c, const VALUE *v, VALUE _)
return rb_f_sprintf(c, v);
}
-COMPILER_WARNING_PUSH
-#if defined(_MSC_VER)
-COMPILER_WARNING_IGNORED(4996)
-#elif defined(__INTEL_COMPILER)
-COMPILER_WARNING_IGNORED(1786)
-#elif __has_warning("-Wdeprecated-declarations")
-COMPILER_WARNING_IGNORED(-Wdeprecated-declarations)
-#elif defined(__GNUC__)
-COMPILER_WARNING_IGNORED(-Wdeprecated-declarations)
-#endif
-
-static inline void
-Init_rb_cData(void)
-{
- rb_cData = rb_cObject;
-}
-
-COMPILER_WARNING_POP
-
/*
* Document-class: Class
*
@@ -4682,8 +4662,6 @@ InitVM_Object(void)
rb_undef_method(rb_cClass, "append_features");
rb_undef_method(rb_cClass, "prepend_features");
- Init_rb_cData();
-
rb_cTrueClass = rb_define_class("TrueClass", rb_cObject);
rb_cTrueClass_to_s = rb_fstring_enc_lit("true", rb_usascii_encoding());
rb_gc_register_mark_object(rb_cTrueClass_to_s);