ProcessList_buildTreeBranch: drop extra assert

It essentially only checks Vector_add, and there's already an assert for
that in the vector code.
This commit is contained in:
Denis Lisov 2022-01-07 02:31:40 +03:00 committed by BenBE
parent 79a6f6cb5b
commit 978a7c894f

View File

@ -229,11 +229,8 @@ static void ProcessList_buildTreeBranch(ProcessList* this, pid_t pid, int level,
process->show = false;
}
int s = Vector_size(this->displayList);
Vector_add(this->displayList, process);
assert(Vector_size(this->displayList) == s + 1); (void)s;
int nextIndent = indent | (1 << level);
ProcessList_buildTreeBranch(this, process->pid, level + 1, (i < lastShown) ? nextIndent : indent, process->show && process->showChildren);
if (i == lastShown) {