From 9cd9eca3793ecf47f0e5971efaf99b514b72be94 Mon Sep 17 00:00:00 2001 From: S-H-GAMELINKS Date: Sun, 26 Sep 2021 21:50:38 +0900 Subject: Refactor rb_proc_call function --- proc.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'proc.c') diff --git a/proc.c b/proc.c index bf04f4c26d..e09aeca223 100644 --- a/proc.c +++ b/proc.c @@ -990,15 +990,7 @@ rb_proc_call_kw(VALUE self, VALUE args, int kw_splat) VALUE rb_proc_call(VALUE self, VALUE args) { - VALUE vret; - rb_proc_t *proc; - GetProcPtr(self, proc); - vret = rb_vm_invoke_proc(GET_EC(), proc, - check_argc(RARRAY_LEN(args)), RARRAY_CONST_PTR(args), - RB_NO_KEYWORDS, VM_BLOCK_HANDLER_NONE); - RB_GC_GUARD(self); - RB_GC_GUARD(args); - return vret; + return rb_proc_call_kw(self, args, RB_NO_KEYWORDS); } static VALUE -- cgit v1.2.1