symbols: remove unneeded optimization

The levels will be resized to the number of levels of the type anyway,
so removing useless levels from the end here is unneeded.

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2012-09-24 09:14:35 +02:00
parent e0573c766d
commit 504853de3b
1 changed files with 0 additions and 4 deletions

View File

@ -808,10 +808,6 @@ AddSymbolsToKey(SymbolsInfo *info, KeyInfo *keyi, ExprDef *arrayNdx,
}
}
for (j = darray_size(groupi->levels) - 1;
j >= 0 && darray_item(groupi->levels, j).num_syms == 0; j--)
(void) darray_pop(groupi->levels);
return true;
}