diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-05 08:20:31 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-05 08:20:31 +0000 |
commit | 4b8cb23a365f4d8dafc51a3b92e2b99c38a18623 (patch) | |
tree | ce828dca687043402bf3e7aeb1a13adde34e4c7a /vm_method.c | |
parent | 35656631d7c34b5e3adb679d12c9c3bcf2a6a8e7 (diff) | |
download | ruby-4b8cb23a365f4d8dafc51a3b92e2b99c38a18623.tar.gz |
intern.h: deprecate disable and enable super
* include/ruby/intern.h (rb_disable_super, rb_enable_super): warn
as deprecated at build time, instead of ignoring silently or
warning at runtime only.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/vm_method.c b/vm_method.c index da77331344..b722d050e1 100644 --- a/vm_method.c +++ b/vm_method.c @@ -814,21 +814,6 @@ rb_mod_remove_method(int argc, VALUE *argv, VALUE mod) return mod; } -#undef rb_disable_super -#undef rb_enable_super - -void -rb_disable_super(VALUE klass, const char *name) -{ - /* obsolete - no use */ -} - -void -rb_enable_super(VALUE klass, const char *name) -{ - rb_warning("rb_enable_super() is obsolete"); -} - static void rb_export_method(VALUE klass, ID name, rb_method_flag_t noex) { |