diff --git a/src/ui/core.c b/src/ui/core.c index 63e6e464..2d925169 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -185,34 +185,6 @@ ui_close(void) endwin(); } -void -ui_page_up(void) -{ - ProfWin *current = wins_get_current(); - win_page_up(current); -} - -void -ui_page_down(void) -{ - ProfWin *current = wins_get_current(); - win_page_down(current); -} - -void -ui_subwin_page_up(void) -{ - ProfWin *current = wins_get_current(); - win_sub_page_up(current); -} - -void -ui_subwin_page_down(void) -{ - ProfWin *current = wins_get_current(); - win_sub_page_down(current); -} - void ui_input_nonblocking(gboolean reset) { diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c index b6f69220..d875b77d 100644 --- a/src/ui/inputwin.c +++ b/src/ui/inputwin.c @@ -553,27 +553,31 @@ _inp_rl_altright_handler(int count, int key) static int _inp_rl_pageup_handler(int count, int key) { - ui_page_up(); + ProfWin *current = wins_get_current(); + win_page_up(current); return 0; } static int _inp_rl_pagedown_handler(int count, int key) { - ui_page_down(); + ProfWin *current = wins_get_current(); + win_page_down(current); return 0; } static int _inp_rl_altpageup_handler(int count, int key) { - ui_subwin_page_up(); + ProfWin *current = wins_get_current(); + win_sub_page_up(current); return 0; } static int _inp_rl_altpagedown_handler(int count, int key) { - ui_subwin_page_down(); + ProfWin *current = wins_get_current(); + win_sub_page_down(current); return 0; } diff --git a/src/ui/ui.h b/src/ui/ui.h index 5e9516d5..ae44d921 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -217,10 +217,6 @@ gboolean ui_tidy_wins(void); void ui_prune_wins(void); gboolean ui_swap_wins(int source_win, int target_win); -void ui_page_up(void); -void ui_page_down(void); -void ui_subwin_page_up(void); -void ui_subwin_page_down(void); void ui_clear_win(ProfWin *window); void ui_auto_away(char *message, gint time, resource_presence_t res_presence); diff --git a/tests/unittests/ui/stub_ui.c b/tests/unittests/ui/stub_ui.c index 2f97dbdb..c60746d2 100644 --- a/tests/unittests/ui/stub_ui.c +++ b/tests/unittests/ui/stub_ui.c @@ -153,10 +153,6 @@ int ui_win_unread(int index) return 0; } -void ui_page_up(void) {} -void ui_page_down(void) {} -void ui_subwin_page_up(void) {} -void ui_subwin_page_down(void) {} void ui_clear_win(ProfWin *window) {} char * ui_ask_password(void)