proc.c: Remove unused parameter [ci skip]

This commit is contained in:
Alan Wu 2023-07-20 10:53:31 -04:00
parent 76ea8ecbf3
commit 5c219c1b7f

10
proc.c
View File

@ -760,7 +760,7 @@ rb_func_lambda_new(rb_block_call_func_t func, VALUE val, int min_argc, int max_a
static const char proc_without_block[] = "tried to create Proc object without a block"; static const char proc_without_block[] = "tried to create Proc object without a block";
static VALUE static VALUE
proc_new(VALUE klass, int8_t is_lambda, int8_t kernel) proc_new(VALUE klass, int8_t is_lambda)
{ {
VALUE procval; VALUE procval;
const rb_execution_context_t *ec = GET_EC(); const rb_execution_context_t *ec = GET_EC();
@ -825,7 +825,7 @@ proc_new(VALUE klass, int8_t is_lambda, int8_t kernel)
static VALUE static VALUE
rb_proc_s_new(int argc, VALUE *argv, VALUE klass) rb_proc_s_new(int argc, VALUE *argv, VALUE klass)
{ {
VALUE block = proc_new(klass, FALSE, FALSE); VALUE block = proc_new(klass, FALSE);
rb_obj_call_init_kw(block, argc, argv, RB_PASS_CALLED_KEYWORDS); rb_obj_call_init_kw(block, argc, argv, RB_PASS_CALLED_KEYWORDS);
return block; return block;
@ -834,7 +834,7 @@ rb_proc_s_new(int argc, VALUE *argv, VALUE klass)
VALUE VALUE
rb_block_proc(void) rb_block_proc(void)
{ {
return proc_new(rb_cProc, FALSE, FALSE); return proc_new(rb_cProc, FALSE);
} }
/* /*
@ -847,13 +847,13 @@ rb_block_proc(void)
static VALUE static VALUE
f_proc(VALUE _) f_proc(VALUE _)
{ {
return proc_new(rb_cProc, FALSE, TRUE); return proc_new(rb_cProc, FALSE);
} }
VALUE VALUE
rb_block_lambda(void) rb_block_lambda(void)
{ {
return proc_new(rb_cProc, TRUE, FALSE); return proc_new(rb_cProc, TRUE);
} }
static void static void