mruby-metaprog (mrb_mod_remove_method): stop calling method_removed()

The hook method should be called from mrb_remove_method().
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-02-12 15:09:17 +09:00
parent 0863c08841
commit 457aaa173b
-1
View File
@@ -635,7 +635,6 @@ mrb_mod_remove_method(mrb_state *mrb, mrb_value mod)
int ai = mrb_gc_arena_save(mrb);
while (argc--) {
mrb_remove_method(mrb, c, mrb_obj_to_sym(mrb, *argv));
mrb_funcall_argv(mrb, mod, MRB_SYM(method_removed), 1, argv);
mrb_gc_arena_restore(mrb, ai);
argv++;
}