From b2311c67671c69df8c390f22b3cb961f7be39a75 Mon Sep 17 00:00:00 2001 From: ko1 Date: Fri, 5 Apr 2019 08:41:04 +0000 Subject: `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 --- vm_method.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'vm_method.c') 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 -- cgit v1.2.3