diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-01-01 21:31:30 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2021-01-01 21:31:30 +0100 |
commit | f6aa5d29bbf30fcde43d9c84a4b9fa775c006053 (patch) | |
tree | 2dd672dacd8d904192262d63988d6a7cc832c80c | |
parent | 2c06566405e8708c6c4813e79c74bb64ea61661c (diff) |
Action: remove trivial wrapper function
-rw-r--r-- | Action.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -162,7 +162,9 @@ Htop_Reaction Action_setSortKey(Settings* settings, ProcessField sortKey) { return HTOP_REFRESH | HTOP_SAVE_SETTINGS | HTOP_UPDATE_PANELHDR | HTOP_KEEP_FOLLOWING; } -static Htop_Reaction sortBy(State* st) { +// ---------------------------------------- + +static Htop_Reaction actionSetSortColumn(State* st) { Htop_Reaction reaction = HTOP_OK; Panel* sortPanel = Panel_new(0, 0, 0, 0, true, Class(ListItem), FunctionBar_newEnterEsc("Sort ", "Cancel ")); Panel_setHeader(sortPanel, "Sort by"); @@ -187,8 +189,6 @@ static Htop_Reaction sortBy(State* st) { return reaction | HTOP_REFRESH | HTOP_REDRAW_BAR | HTOP_UPDATE_PANELHDR; } -// ---------------------------------------- - static Htop_Reaction actionResize(State* st) { clear(); Panel_resize(st->panel, COLS, LINES - (st->panel->y) - 1); @@ -271,10 +271,6 @@ static Htop_Reaction actionInvertSortOrder(State* st) { return HTOP_REFRESH | HTOP_SAVE_SETTINGS; } -static Htop_Reaction actionSetSortColumn(State* st) { - return sortBy(st); -} - static Htop_Reaction actionExpandOrCollapse(State* st) { bool changed = expandCollapse(st->panel); return changed ? HTOP_RECALCULATE : HTOP_OK; |