Skip to content

Commit

Permalink
Remove unused substitutions and calculations.
Browse files Browse the repository at this point in the history
  • Loading branch information
monaka committed Mar 8, 2013
1 parent 9324c21 commit faa1e56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/load.c
Expand Up @@ -186,7 +186,7 @@ read_rite_section_irep(mrb_state *mrb, const uint8_t *bin)
result = MRB_DUMP_OK;
error_exit:
if (result != MRB_DUMP_OK) {
for (n = 0, i = sirep; i < mrb->irep_len; n++, i++) {
for (i = sirep; i < mrb->irep_len; i++) {
if (mrb->irep[i]) {
if (mrb->irep[i]->iseq)
mrb_free(mrb, mrb->irep[i]->iseq);
Expand Down Expand Up @@ -317,7 +317,7 @@ read_rite_section_irep_file(mrb_state *mrb, FILE *fp)
error_exit:
mrb_free(mrb, buf);
if (result != MRB_DUMP_OK) {
for (n = 0, i = sirep; i < mrb->irep_len; n++, i++) {
for (i = sirep; i < mrb->irep_len; i++) {
if (mrb->irep[i]) {
if (mrb->irep[i]->iseq)
mrb_free(mrb, mrb->irep[i]->iseq);
Expand Down

0 comments on commit faa1e56

Please sign in to comment.