From fddacae487597151ab0e8c786bb188f833eeb15a Mon Sep 17 00:00:00 2001 From: venko Date: Fri, 7 May 2021 14:19:56 -0700 Subject: [PATCH] tiny refactor --- src/identcheck.c | 2 -- 1 file changed, 2 deletions(-) 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; }