mirror of https://github.com/xzeldon/htop.git
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:
parent
79a6f6cb5b
commit
978a7c894f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue