diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-25 06:03:53 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-25 06:03:53 +0000 |
commit | 9dc3a7d7a5aece71c2bad9d2ec185f2ef87245b6 (patch) | |
tree | 25a68c4386f5f36a9fc4b329868ae4f0052cf092 /vm_method.c | |
parent | 8ca58751c106d8d88ed4fe41306a389f4dd53b23 (diff) |
* include/ruby/ruby.h, class.c: remove (revert)
`rb_add_method_cfunc_frameless()' API.
This API is not mature to become an offical API.
For example, we can not use this API with
`rb_define_private_method()'.
* method.h, vm_method.c (rb_add_method_cfunc_frameless): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/vm_method.c b/vm_method.c index 8994fa2c2e..033c81f262 100644 --- a/vm_method.c +++ b/vm_method.c @@ -97,21 +97,6 @@ rb_add_method_cfunc(VALUE klass, ID mid, VALUE (*func)(ANYARGS), int argc, rb_me } void -rb_add_method_cfunc_frameless(VALUE klass, ID mid, VALUE (*func)(ANYARGS), int argc, rb_method_flag_t noex) -{ - if (argc < 0 || 1 < argc) rb_raise(rb_eArgError, "arity out of range: %d for 0..1", argc); - if (func != rb_f_notimplement) { - rb_method_cfunc_t opt; - opt.func = func; - opt.argc = argc; - rb_add_method(klass, mid, VM_METHOD_TYPE_CFUNC_FRAMELESS, &opt, noex); - } - else { - rb_define_notimplement_method_id(klass, mid, noex); - } -} - -void rb_unlink_method_entry(rb_method_entry_t *me) { struct unlinked_method_entry_list_entry *ume = ALLOC(struct unlinked_method_entry_list_entry); |