From 205c252ec7364ea30ab39cc3c316fdada781eb1b Mon Sep 17 00:00:00 2001 From: S-H-GAMELINKS Date: Sat, 24 Sep 2022 22:35:10 +0900 Subject: Reuse rb_method_call_kw function --- proc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'proc.c') diff --git a/proc.c b/proc.c index 200a592701..fb182efe46 100644 --- a/proc.c +++ b/proc.c @@ -2452,8 +2452,7 @@ method_clone(VALUE self) static VALUE rb_method_call_pass_called_kw(int argc, const VALUE *argv, VALUE method) { - VALUE procval = rb_block_given_p() ? rb_block_proc() : Qnil; - return rb_method_call_with_block_kw(argc, argv, method, procval, RB_PASS_CALLED_KEYWORDS); + return rb_method_call_kw(argc, argv, method, RB_PASS_CALLED_KEYWORDS); } VALUE -- cgit v1.2.1