From: Gabriel Corona Date: Fri, 11 Jul 2014 08:15:59 +0000 (+0200) Subject: [mc] Remove 'previous' variable ind mmalloc_compare_heap() X-Git-Tag: v3_12~890^2~1^2~4^2~12 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/92889611b8d4b2f3af286c5e9fb7b8dedfea2e12 [mc] Remove 'previous' variable ind mmalloc_compare_heap() It was not used. --- diff --git a/src/mc/mc_diff.c b/src/mc/mc_diff.c index 20b0e0c597..9748eeeef3 100644 --- a/src/mc/mc_diff.c +++ b/src/mc/mc_diff.c @@ -422,9 +422,6 @@ int mmalloc_compare_heap(mc_snapshot_t snapshot1, mc_snapshot_t snapshot2) void *addr_block1, *addr_block2, *addr_frag1, *addr_frag2; int nb_diff1 = 0, nb_diff2 = 0; - xbt_dynar_t previous = - xbt_dynar_new(sizeof(heap_area_pair_t), heap_area_pair_free_voidp); - int equal, res_compare = 0; /* Check busy blocks */ @@ -498,8 +495,6 @@ int mmalloc_compare_heap(mc_snapshot_t snapshot1, mc_snapshot_t snapshot2) i1 += heapinfo1->busy_block.size; } - xbt_dynar_reset(previous); - } } @@ -540,8 +535,6 @@ int mmalloc_compare_heap(mc_snapshot_t snapshot1, mc_snapshot_t snapshot2) i1 += heapinfo1->busy_block.size; } - xbt_dynar_reset(previous); - i2++; } @@ -589,8 +582,6 @@ int mmalloc_compare_heap(mc_snapshot_t snapshot1, mc_snapshot_t snapshot2) if (res_compare != 1) equal = 1; - xbt_dynar_reset(previous); - } } @@ -625,12 +616,9 @@ int mmalloc_compare_heap(mc_snapshot_t snapshot1, mc_snapshot_t snapshot2) if (res_compare != 1) { equal = 1; - xbt_dynar_reset(previous); break; } - xbt_dynar_reset(previous); - } i2++; @@ -741,7 +729,6 @@ int mmalloc_compare_heap(mc_snapshot_t snapshot1, mc_snapshot_t snapshot2) if (i1 == state->heaplimit) XBT_DEBUG("Number of blocks/fragments not found in heap2 : %d", nb_diff2); - xbt_dynar_free(&previous); return ((nb_diff1 > 0) || (nb_diff2 > 0)); }