diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-06-29 13:18:06 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-06-29 22:20:12 -0700 |
commit | 9963ffa20596275dc70831862ce25471cf69f9ed (patch) | |
tree | 4b96c287d122a72564e1c480444d6ef4ac5d92fc /op.c | |
parent | 4a273b91c8e47ab37c6dd310072403d4fe2d0fb9 (diff) | |
download | perl-9963ffa20596275dc70831862ce25471cf69f9ed.tar.gz |
op.c: Remove unnecessary variable
This is left over from when I had the partially-filled slab at the end
of the chain, instead of second (which was never committed).
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -378,8 +378,6 @@ Perl_Slab_Alloc(pTHX_ size_t sz) if ((space = DIFF(&slab2->opslab_slots, slab2->opslab_first)) < sz) { /* Remaining space is too small. */ - OPSLAB *newslab; - /* If we can fit a BASEOP, add it to the free chain, so as not to waste it. */ if (space >= SIZE_TO_PSIZE(sizeof(OP)) + OPSLOT_HEADER_P) { @@ -393,9 +391,9 @@ Perl_Slab_Alloc(pTHX_ size_t sz) /* Create a new slab. Make this one twice as big. */ slot = slab2->opslab_first; while (slot->opslot_next) slot = slot->opslot_next; - newslab = S_new_slab(aTHX_ DIFF(slab2, slot)*2); - newslab->opslab_next = slab->opslab_next; - slab->opslab_next = slab2 = newslab; + slab2 = S_new_slab(aTHX_ DIFF(slab2, slot)*2); + slab2->opslab_next = slab->opslab_next; + slab->opslab_next = slab2; } assert(DIFF(&slab2->opslab_slots, slab2->opslab_first) >= sz); |