summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-24 06:36:44 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-24 06:36:44 +0000
commitd5893b91faa7dc77ca6c9728d1054dabd757aead (patch)
tree4997454073bafbda2b0c05559f5d4941603c7b24 /vm_method.c
parent3dcebce5235276e99a75c6b0c71f4f3c4f4e225c (diff)
* vm_method.c (rb_method_defined_by): removed.
nobu pointed out that rb_method_basic_definition_p() is enough for last commit. * error.c, eval_error.c: change for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c16
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;
- }
-}
-