mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
class.c (mrb_class_inherited): no need to clear method cache.
Since the function is only called for a newly created class, there is no need to modify the method cache here.
This commit is contained in:
@@ -565,7 +565,6 @@ mrb_class_inherited(mrb_state *mrb, struct RClass *super, struct RClass *klass)
|
||||
super = mrb->object_class;
|
||||
super->flags |= MRB_FL_CLASS_IS_INHERITED;
|
||||
s = mrb_obj_value(super);
|
||||
mrb_mc_clear_by_class(mrb, klass);
|
||||
mid = MRB_SYM(inherited);
|
||||
if (!mrb_func_basic_p(mrb, s, mid, mrb_do_nothing)) {
|
||||
mrb_value c = mrb_obj_value(klass);
|
||||
|
||||
Reference in New Issue
Block a user