tiny refactor

identifiers
venko 2021-05-07 14:19:56 -07:00
parent 71ba1f9454
commit fddacae487
1 changed files with 0 additions and 2 deletions

View File

@ -176,7 +176,6 @@ IdNode* FindId(IdNode *root, NodeType targetType, char *targetName) {
for(i = 1; i < frontierCount; i++) {
frontier[i-1] = frontier[i];
}
size_t newSize = frontierCount + current->childCount - 1;
if (frontierCount != newSize) {
frontier = realloc(frontier, sizeof(IdNode*) * newSize);
@ -184,7 +183,6 @@ IdNode* FindId(IdNode *root, NodeType targetType, char *targetName) {
for (i = 0; i < current->childCount; i++) {
frontier[frontierCount + i - 1] = current->children[i];
}
frontierCount = newSize;
}