mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-compiler (mrb_irep_remove_lv): remove the function altogether
Recent changes make mrb_irep_remove_lv() used no longer. Removing this function would not make any compatibility issue, since it's an internal function.
This commit is contained in:
@@ -86,7 +86,6 @@ void mrb_gc_free_hash(mrb_state*, struct RHash*);
|
||||
struct mrb_insn_data mrb_decode_insn(const mrb_code *pc);
|
||||
#ifdef MRUBY_IREP_H
|
||||
void mrb_irep_free(mrb_state*, struct mrb_irep*);
|
||||
void mrb_irep_remove_lv(mrb_state *mrb, mrb_irep *irep);
|
||||
|
||||
static inline const struct mrb_irep_catch_handler *
|
||||
mrb_irep_catch_handler_table(const struct mrb_irep *irep)
|
||||
|
||||
@@ -4095,19 +4095,3 @@ mrb_generate_code(mrb_state *mrb, parser_state *p)
|
||||
{
|
||||
return generate_code(mrb, p, VAL);
|
||||
}
|
||||
|
||||
void
|
||||
mrb_irep_remove_lv(mrb_state *mrb, mrb_irep *irep)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (irep->flags & MRB_IREP_NO_FREE) return;
|
||||
if (irep->lv) {
|
||||
mrb_free(mrb, (void*)irep->lv);
|
||||
irep->lv = NULL;
|
||||
}
|
||||
if (!irep->reps) return;
|
||||
for (i = 0; i < irep->rlen; i++) {
|
||||
mrb_irep_remove_lv(mrb, (mrb_irep*)irep->reps[i]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user