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
parent
e0573c766d
commit
504853de3b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue