summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2019-09-25 13:51:06 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2019-09-30 10:26:38 +0900
commit7cb96d41a52d5ce4b2485ff542edc88fa246bc1a (patch)
treedc13c02edcd942d8bf0aa67bbf1fd262cfcc0f41 /vm_insnhelper.c
parent3207979278bea11c50cb84f4044047b9c503230b (diff)
refactor delete rb_method_entry_copy
The deleted function was to destructively overwrite existing method entries, which is now considered to be a bad idea. Delete it, and assign a newly created method entry instead.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2486
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 0a43f949af..f144d1157c 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -19,7 +19,6 @@
#include "ruby/config.h"
#include "debug_counter.h"
-extern const rb_method_definition_t *rb_method_definition_create(rb_method_type_t type, ID mid, const void *opts);
extern void rb_method_entry_spoof(const rb_method_entry_t *me);
extern int rb_method_definition_eq(const rb_method_definition_t *d1, const rb_method_definition_t *d2);
extern VALUE rb_make_no_method_exception(VALUE exc, VALUE format, VALUE obj,