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:
Yukihiro "Matz" Matsumoto
2024-11-29 17:09:44 +09:00
parent 28d2dfbb11
commit e05dbf7bbc
2 changed files with 0 additions and 17 deletions
-1
View File
@@ -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)
-16
View File
@@ -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]);
}
}