Skip to content

Commit

Permalink
Remove not public used functions
Browse files Browse the repository at this point in the history
  • Loading branch information
cgzones committed Nov 16, 2020
1 parent ff3da80 commit 77c80f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
12 changes: 2 additions & 10 deletions ProcessList.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,6 @@ void ProcessList_remove(ProcessList* this, 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(ProcessList* this) {
return (Vector_size(this->processes));
}

static void ProcessList_buildTree(ProcessList* this, pid_t pid, int level, int indent, int direction, bool show) {
Vector* children = Vector_new(Class(Process), false, DEFAULT_SIZE);

Expand Down Expand Up @@ -273,11 +265,11 @@ void ProcessList_rebuildPanel(ProcessList* this) {
int currScrollV = this->panel->scrollV;

Panel_prune(this->panel);
int size = ProcessList_size(this);
int size = Vector_size(this->processes);
int idx = 0;
for (int i = 0; i < size; i++) {
bool hidden = false;
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))
Expand Down
4 changes: 0 additions & 4 deletions ProcessList.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@ void ProcessList_add(ProcessList* this, Process* p);

void ProcessList_remove(ProcessList* this, Process* p);

Process* ProcessList_get(ProcessList* this, int idx);

int ProcessList_size(ProcessList* this);

void ProcessList_sort(ProcessList* this);

ProcessField ProcessList_keyAt(const ProcessList* this, int at);
Expand Down

0 comments on commit 77c80f1

Please sign in to comment.