diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-05 08:41:04 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-05 08:41:04 +0000 |
commit | b2311c67671c69df8c390f22b3cb961f7be39a75 (patch) | |
tree | b1341f0ad9e54b8ae863d4dffc4292bb76991a82 /vm_method.c | |
parent | 4b53f843264df5694f6693a9a3461af055573fe0 (diff) |
`rb_add_method` is void function.
* method.h (rb_add_method): make it void function because
nobody use a return value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/vm_method.c b/vm_method.c index 8cb86263e2..c5ca644230 100644 --- a/vm_method.c +++ b/vm_method.c @@ -657,16 +657,14 @@ method_added(VALUE klass, ID mid) } } -rb_method_entry_t * +void rb_add_method(VALUE klass, ID mid, rb_method_type_t type, void *opts, rb_method_visibility_t visi) { - rb_method_entry_t *me = rb_method_entry_make(klass, mid, klass, visi, type, NULL, mid, opts); + rb_method_entry_make(klass, mid, klass, visi, type, NULL, mid, opts); if (type != VM_METHOD_TYPE_UNDEF && type != VM_METHOD_TYPE_REFINED) { method_added(klass, mid); } - - return me; } MJIT_FUNC_EXPORTED void |