forked from cosmonaut/wraith-lang
tiny refactor
parent
71ba1f9454
commit
fddacae487
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue