@@ -807,11 +807,6 @@ struct moved_block {
int wsd; /* The whitespace delta of this block */
};
-static void moved_block_clear(struct moved_block *b)
-{
- memset(b, 0, sizeof(*b));
-}
-
#define INDENT_BLANKLINE INT_MIN
static void fill_es_indent_data(struct emitted_diff_symbol *es)
@@ -1128,8 +1123,6 @@ static void mark_color_as_moved(struct diff_options *o,
}
if (pmb_nr && (!match || l->s != moved_symbol)) {
- int i;
-
if (!adjust_last_block(o, n, block_length) &&
block_length > 1) {
/*
@@ -1139,8 +1132,6 @@ static void mark_color_as_moved(struct diff_options *o,
match = NULL;
n -= block_length;
}
- for(i = 0; i < pmb_nr; i++)
- moved_block_clear(&pmb[i]);
pmb_nr = 0;
block_length = 0;
flipped_block = 0;
@@ -1193,8 +1184,6 @@ static void mark_color_as_moved(struct diff_options *o,
}
adjust_last_block(o, n, block_length);
- for(n = 0; n < pmb_nr; n++)
- moved_block_clear(&pmb[n]);
free(pmb);
}