diff --git a/src/identcheck.c b/src/identcheck.c index 9cb69f7..32408d8 100644 --- a/src/identcheck.c +++ b/src/identcheck.c @@ -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; }