move mrb_irep_remove_lv to codegen.c in mruby-compiler

This commit is contained in:
yuri
2018-07-10 15:44:25 +09:00
parent dabb20ddbb
commit 5fef38e4c7
2 changed files with 15 additions and 15 deletions
-15
View File
@@ -1103,19 +1103,4 @@ mrb_dump_irep_cfunc(mrb_state *mrb, mrb_irep *irep, uint8_t flags, FILE *fp, con
return result;
}
void
mrb_irep_remove_lv(mrb_state *mrb, mrb_irep *irep)
{
int i;
if (irep->lv) {
mrb_free(mrb, irep->lv);
irep->lv = NULL;
}
for (i = 0; i < irep->rlen; ++i) {
mrb_irep_remove_lv(mrb, irep->reps[i]);
}
}
#endif /* MRB_DISABLE_STDIO */