diff options
author | Denis Lisov <dennis.lissov@gmail.com> | 2022-01-07 02:31:40 +0300 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2022-02-13 19:50:16 +0100 |
commit | 978a7c894f12c58e544860aae530f84adfed8d39 (patch) | |
tree | dfa37a6c362e0aa4072c946641099dbc226b3846 | |
parent | 79a6f6cb5b9d059c9a70e67cc16157b28f5b8758 (diff) |
ProcessList_buildTreeBranch: drop extra assert
It essentially only checks Vector_add, and there's already an assert for
that in the vector code.
-rw-r--r-- | ProcessList.c | 3 |
1 files changed, 0 insertions, 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) { |