From e57b4f909901ccc04b596ea817a98100b5f7b33b Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Tue, 20 Sep 2022 13:27:51 +0100 Subject: gui: Remove gui_synclist_item_is_onscreen() Only the "Rockbox Info" screen uses it for a rather silly purpose, so remove the function. This helps to decouple things from the GUI. Change-Id: Icf73e3ee1230c75bf43016c0f1c05c7fe1a24895 --- apps/menus/main_menu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'apps/menus/main_menu.c') diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c index 2814c44fe6..03873faac9 100644 --- a/apps/menus/main_menu.c +++ b/apps/menus/main_menu.c @@ -441,8 +441,7 @@ static int info_action_callback(int action, struct gui_synclist *lists) else if (action == ACTION_NONE) { static int last_redraw = 0; - if (gui_synclist_item_is_onscreen(lists, 0, INFO_TIME) - && TIME_AFTER(current_tick, last_redraw + HZ*5)) + if (TIME_AFTER(current_tick, last_redraw + HZ*5)) { last_redraw = current_tick; return ACTION_REDRAW; -- cgit v1.2.3