kernel.c: remove mrb_inspect_recursive_p(); #5531

And use mrb_recursive_method_p() and its helper methods.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-07-07 14:52:02 +09:00
parent 5ca2d442ce
commit 2735340702
7 changed files with 5 additions and 70 deletions
-6
View File
@@ -126,12 +126,6 @@ mrb_recursive_method_p(mrb_state *mrb, mrb_sym mid, mrb_value obj1, mrb_value ob
#define MRB_RECURSIVE_BINARY_P(mrb, mid, obj1, obj2) \
mrb_recursive_method_p(mrb, mid, obj1, obj2)
mrb_bool
mrb_inspect_recursive_p(mrb_state *mrb, mrb_value obj)
{
return MRB_RECURSIVE_UNARY_P(mrb, MRB_SYM(inspect), obj);
}
static mrb_value
mrb_obj_method_recursive_p(mrb_state *mrb, mrb_value obj)
{