From 5fef38e4c77cb3700750fe0020063289a49242d6 Mon Sep 17 00:00:00 2001 From: yuri Date: Tue, 10 Jul 2018 15:44:25 +0900 Subject: move mrb_irep_remove_lv to codegen.c in mruby-compiler --- src/dump.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/dump.c') diff --git a/src/dump.c b/src/dump.c index d0f0850fe..df1e171e4 100644 --- a/src/dump.c +++ b/src/dump.c @@ -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 */ -- cgit v1.2.3