vm_argc.c (vm_caller_setup_arg_kw): "cfunc" argument is no longer used

This commit is contained in:
Yusuke Endoh 2019-09-05 16:24:46 +09:00 committed by Jeremy Evans
parent 030b8e5edf
commit a23ddf7ff5
2 changed files with 2 additions and 2 deletions

View File

@ -969,7 +969,7 @@ vm_caller_setup_arg_splat(rb_control_frame_t *cfp, struct rb_calling_info *calli
} }
static inline void static inline void
vm_caller_setup_arg_kw(rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, int cfunc) vm_caller_setup_arg_kw(rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci)
{ {
struct rb_call_info_with_kwarg *ci_kw = (struct rb_call_info_with_kwarg *)ci; struct rb_call_info_with_kwarg *ci_kw = (struct rb_call_info_with_kwarg *)ci;
const VALUE *const passed_keywords = ci_kw->kw_arg->keywords; const VALUE *const passed_keywords = ci_kw->kw_arg->keywords;

View File

@ -1746,7 +1746,7 @@ CALLER_SETUP_ARG(struct rb_control_frame_struct *restrict cfp,
vm_caller_setup_arg_splat(cfp, calling); vm_caller_setup_arg_splat(cfp, calling);
} }
if (UNLIKELY(IS_ARGS_KEYWORD(ci))) { if (UNLIKELY(IS_ARGS_KEYWORD(ci))) {
vm_caller_setup_arg_kw(cfp, calling, ci, cfunc); vm_caller_setup_arg_kw(cfp, calling, ci);
} }
} }