diff options
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/vm_method.c b/vm_method.c index 8c606d410c..a22c917880 100644 --- a/vm_method.c +++ b/vm_method.c @@ -1401,19 +1401,3 @@ Init_eval_method(void) REPLICATE_METHOD(rb_eException, respond_to_missing, NOEX_PUBLIC); } } - -int -rb_method_defined_by(VALUE obj, ID mid, VALUE (*cfunc)(ANYARGS)) -{ - rb_method_entry_t *me = search_method(CLASS_OF(obj), mid); - - if (me && me->def && - me->def->type == VM_METHOD_TYPE_CFUNC && - me->def->body.cfunc.func == cfunc) { - return 1; - } - else { - return 0; - } -} - |