diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-27 05:29:49 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-27 05:29:49 +0000 |
commit | d226ce8decef356c7447efb6b6b325bc8fc53dba (patch) | |
tree | fc6ee90568444f58aeea654c4f2326cb5b1f73ae /vm_method.c | |
parent | f8fe5349802f2d73a70b0b7a190a3c7071efa0f4 (diff) |
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.c | 4 |
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 |