Follow-up to #6391

The #6392 has been merged, so the call to `mrb_yield_with_class()` is no longer needed.
This commit is contained in:
dearblue
2024-10-25 21:11:07 +09:00
parent ba69f36d6d
commit 94290b9bb8
-8
View File
@@ -842,14 +842,6 @@ mrb_value
mrb_object_exec(mrb_state *mrb, mrb_value self, struct RClass *target_class)
{
mrb_callinfo *ci = mrb->c->ci;
if (ci->cci > 0) {
const mrb_value *argv;
mrb_int argc;
mrb_value blk;
mrb_get_args(mrb, "*!&!", &argv, &argc, &blk);
return mrb_yield_with_class(mrb, blk, argc, argv, self, target_class);
}
int bidx = mrb_ci_bidx(ci);
mrb_value blk = ci->stack[bidx];
if (mrb_nil_p(blk)) {