aboutsummaryrefslogtreecommitdiffstats
path: root/vm_method.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-27 05:29:49 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-27 05:29:49 +0000
commit02865d9e180cac9266ce0d5cc60e2782cad1d0b8 (patch)
treefc6ee90568444f58aeea654c4f2326cb5b1f73ae /vm_method.c
parent9c8faf66b8aee9ed7564b930251e57f782fbf684 (diff)
downloadruby-02865d9e180cac9266ce0d5cc60e2782cad1d0b8.tar.gz
internal.h: ONLY_FOR_INTERNAL_USE
* error.c (ruby_only_for_internal_use): raise fatal error when deprecated function only for internal use is called, not just a warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/vm_method.c b/vm_method.c
index 2d3e78c303..90d543793a 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -83,9 +83,7 @@ rb_class_clear_method_cache(VALUE klass, VALUE arg)
void
rb_clear_cache(void)
{
- rb_warning("rb_clear_cache() is deprecated.");
- INC_GLOBAL_METHOD_STATE();
- INC_GLOBAL_CONSTANT_STATE();
+ ONLY_FOR_INTERNAL_USE("rb_clear_cache()");
}
void