From 978a7c894f12c58e544860aae530f84adfed8d39 Mon Sep 17 00:00:00 2001 From: Denis Lisov Date: Fri, 7 Jan 2022 02:31:40 +0300 Subject: ProcessList_buildTreeBranch: drop extra assert It essentially only checks Vector_add, and there's already an assert for that in the vector code. --- ProcessList.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/ProcessList.c b/ProcessList.c index 2e99041e..f6ba63fd 100644 --- a/ProcessList.c +++ b/ProcessList.c @@ -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) { -- cgit v1.2.3