diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-17 17:35:17 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-17 17:35:17 +0900 |
commit | 62554ca97812b454e78a0a9daf6e962ff7a2f589 (patch) | |
tree | 43390bbafa893bc204389edf0c191ad3f0928475 /object.c | |
parent | 3152977b31b64dde776724188bdaa927b07d524d (diff) | |
download | ruby-62554ca97812b454e78a0a9daf6e962ff7a2f589.tar.gz |
Removed NIL/TRUE/FALSE
Deprerecated constants which had been warned since 2.4.
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -4692,11 +4692,6 @@ InitVM_Object(void) rb_define_method(rb_cNilClass, "nil?", rb_true, 0); rb_undef_alloc_func(rb_cNilClass); rb_undef_method(CLASS_OF(rb_cNilClass), "new"); - /* - * An obsolete alias of +nil+ - */ - rb_define_global_const("NIL", Qnil); - rb_deprecate_constant(rb_cObject, "NIL"); rb_define_method(rb_cModule, "freeze", rb_mod_freeze, 0); rb_define_method(rb_cModule, "===", rb_mod_eqq, 1); @@ -4781,11 +4776,6 @@ InitVM_Object(void) rb_define_method(rb_cTrueClass, "===", rb_equal, 1); rb_undef_alloc_func(rb_cTrueClass); rb_undef_method(CLASS_OF(rb_cTrueClass), "new"); - /* - * An obsolete alias of +true+ - */ - rb_define_global_const("TRUE", Qtrue); - rb_deprecate_constant(rb_cObject, "TRUE"); rb_cFalseClass = rb_define_class("FalseClass", rb_cObject); rb_cFalseClass_to_s = rb_fstring_enc_lit("false", rb_usascii_encoding()); @@ -4798,11 +4788,6 @@ InitVM_Object(void) rb_define_method(rb_cFalseClass, "===", rb_equal, 1); rb_undef_alloc_func(rb_cFalseClass); rb_undef_method(CLASS_OF(rb_cFalseClass), "new"); - /* - * An obsolete alias of +false+ - */ - rb_define_global_const("FALSE", Qfalse); - rb_deprecate_constant(rb_cObject, "FALSE"); } #include "kernel.rbinc" |