Skip to content

Commit 978a7c8

Browse files
tanriolBenBE
authored andcommitted
ProcessList_buildTreeBranch: drop extra assert
It essentially only checks Vector_add, and there's already an assert for that in the vector code.
1 parent 79a6f6c commit 978a7c8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ProcessList.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,8 @@ static void ProcessList_buildTreeBranch(ProcessList* this, pid_t pid, int level,
229229
process->show = false;
230230
}
231231

232-
int s = Vector_size(this->displayList);
233232
Vector_add(this->displayList, process);
234233

235-
assert(Vector_size(this->displayList) == s + 1); (void)s;
236-
237234
int nextIndent = indent | (1 << level);
238235
ProcessList_buildTreeBranch(this, process->pid, level + 1, (i < lastShown) ? nextIndent : indent, process->show && process->showChildren);
239236
if (i == lastShown) {

0 commit comments

Comments
 (0)