summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2023-07-20 10:53:31 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2023-07-20 10:53:31 -0400
commit5c219c1b7f6898faf3b13d545f896dc8302ce02a (patch)
treedfe691a35ad9e9330e52e0c8e98c3367892b5c36 /proc.c
parent76ea8ecbf3b412de4877ca2a8574f96590aac807 (diff)
proc.c: Remove unused parameter [ci skip]
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/proc.c b/proc.c
index 08474506ac..c284d4fcab 100644
--- a/proc.c
+++ b/proc.c
@@ -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();
@@ -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;
@@ -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);
}
/*
@@ -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