Make MainPanel_pidSearch a static function

Not used elsewhere.
This commit is contained in:
Christian Göttsche 2021-04-18 15:50:06 +02:00 committed by cgzones
parent a05e78f531
commit 5dbca0193d
2 changed files with 1 additions and 3 deletions

View File

@ -29,7 +29,7 @@ void MainPanel_updateTreeFunctions(MainPanel* this, bool mode) {
FunctionBar_setLabel(bar, KEY_F(5), mode ? "List " : "Tree "); FunctionBar_setLabel(bar, KEY_F(5), mode ? "List " : "Tree ");
} }
void MainPanel_pidSearch(MainPanel* this, int ch) { static void MainPanel_pidSearch(MainPanel* this, int ch) {
Panel* super = (Panel*) this; Panel* super = (Panel*) this;
pid_t pid = ch - 48 + this->pidSearch; pid_t pid = ch - 48 + this->pidSearch;
for (int i = 0; i < Panel_size(super); i++) { for (int i = 0; i < Panel_size(super); i++) {

View File

@ -34,8 +34,6 @@ typedef bool(*MainPanel_ForeachProcessFn)(Process*, Arg);
void MainPanel_updateTreeFunctions(MainPanel* this, bool mode); void MainPanel_updateTreeFunctions(MainPanel* this, bool mode);
void MainPanel_pidSearch(MainPanel* this, int ch);
int MainPanel_selectedPid(MainPanel* this); int MainPanel_selectedPid(MainPanel* this);
bool MainPanel_foreachProcess(MainPanel* this, MainPanel_ForeachProcessFn fn, Arg arg, bool* wasAnyTagged); bool MainPanel_foreachProcess(MainPanel* this, MainPanel_ForeachProcessFn fn, Arg arg, bool* wasAnyTagged);