summaryrefslogtreecommitdiffstats
path: root/ProcessList.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-04-18 15:50:56 +0200
committercgzones <cgzones@googlemail.com>2021-04-21 20:58:28 +0200
commitd58c2f0606dd6d56d4b70f0367d6309ba3964a19 (patch)
treef2defb561e25a541126c610417863a2e75869266 /ProcessList.c
parent5dbca0193ded83136b14615e55caffbc240cd7ce (diff)
Drop ProcessList_get and ProcessList_size
Only used inside ProcessList.c and only once each.
Diffstat (limited to 'ProcessList.c')
-rw-r--r--ProcessList.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/ProcessList.c b/ProcessList.c
index 1a84b651..fa8ff4a4 100644
--- a/ProcessList.c
+++ b/ProcessList.c
@@ -168,14 +168,6 @@ void ProcessList_remove(ProcessList* this, const Process* p) {
assert(Hashtable_count(this->processTable) == Vector_count(this->processes));
}
-Process* ProcessList_get(ProcessList* this, int idx) {
- return (Process*)Vector_get(this->processes, idx);
-}
-
-int ProcessList_size(const ProcessList* this) {
- return Vector_size(this->processes);
-}
-
// ProcessList_updateTreeSetLayer sorts this->displayTreeSet,
// relying only on itself.
//
@@ -530,12 +522,12 @@ void ProcessList_rebuildPanel(ProcessList* this) {
}
}
- const int processCount = ProcessList_size(this);
+ const int processCount = Vector_size(this->processes);
int idx = 0;
bool foundFollowed = false;
for (int i = 0; i < processCount; i++) {
- Process* p = ProcessList_get(this, i);
+ Process* p = (Process*) Vector_get(this->processes, i);
if ( (!p->show)
|| (this->userId != (uid_t) -1 && (p->st_uid != this->userId))

© 2014-2024 Faster IT GmbH | imprint | privacy policy