Remove dead function rb_func_proc_new

This commit is contained in:
Peter Zhu 2025-01-13 15:59:19 -05:00
parent 5c95898e93
commit 5a448a87fc
Notes: git 2025-01-20 15:31:53 +00:00
2 changed files with 0 additions and 8 deletions

View File

@ -22,7 +22,6 @@ int rb_block_min_max_arity(int *max);
VALUE rb_block_to_s(VALUE self, const struct rb_block *block, const char *additional_info);
VALUE rb_callable_receiver(VALUE);
VALUE rb_func_proc_new(rb_block_call_func_t func, VALUE val);
VALUE rb_func_proc_dup(VALUE src_obj);
VALUE rb_func_lambda_new(rb_block_call_func_t func, VALUE val, int min_argc, int max_argc);
VALUE rb_iseq_location(const struct rb_iseq_struct *iseq);

7
proc.c
View File

@ -752,13 +752,6 @@ rb_vm_ifunc_new(rb_block_call_func_t func, const void *data, int min_argc, int m
return ifunc;
}
VALUE
rb_func_proc_new(rb_block_call_func_t func, VALUE val)
{
struct vm_ifunc *ifunc = rb_vm_ifunc_proc_new(func, (void *)val);
return cfunc_proc_new(rb_cProc, (VALUE)ifunc);
}
VALUE
rb_func_lambda_new(rb_block_call_func_t func, VALUE val, int min_argc, int max_argc)
{