Skip to content

Commit

Permalink
proc.c: Remove unused parameter [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
XrXr committed Jul 20, 2023
1 parent 76ea8ec commit 5c219c1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions proc.c
Expand Up @@ -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 VALUE
proc_new(VALUE klass, int8_t is_lambda, int8_t kernel)
proc_new(VALUE klass, int8_t is_lambda)
{
VALUE procval;
const rb_execution_context_t *ec = GET_EC();
Expand Down Expand Up @@ -825,7 +825,7 @@ proc_new(VALUE klass, int8_t is_lambda, int8_t kernel)
static VALUE
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);
return block;
Expand All @@ -834,7 +834,7 @@ rb_proc_s_new(int argc, VALUE *argv, VALUE klass)
VALUE
rb_block_proc(void)
{
return proc_new(rb_cProc, FALSE, FALSE);
return proc_new(rb_cProc, FALSE);
}

/*
Expand All @@ -847,13 +847,13 @@ rb_block_proc(void)
static VALUE
f_proc(VALUE _)
{
return proc_new(rb_cProc, FALSE, TRUE);
return proc_new(rb_cProc, FALSE);
}

VALUE
rb_block_lambda(void)
{
return proc_new(rb_cProc, TRUE, FALSE);
return proc_new(rb_cProc, TRUE);
}

static void
Expand Down

0 comments on commit 5c219c1

Please sign in to comment.