diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-09-20 13:27:51 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-10-05 11:23:11 -0400 |
commit | e57b4f909901ccc04b596ea817a98100b5f7b33b (patch) | |
tree | 1f391a6f2a9621be282234c5d053de6fa264e6bd /apps/gui/list.c | |
parent | 1c5a0497cf7735009b26dd0da82ea2820a2486a2 (diff) | |
download | rockbox-e57b4f909901ccc04b596ea817a98100b5f7b33b.tar.gz rockbox-e57b4f909901ccc04b596ea817a98100b5f7b33b.zip |
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
Diffstat (limited to 'apps/gui/list.c')
-rw-r--r-- | apps/gui/list.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c index bb5d1a922e..d15948e97a 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c | |||
@@ -800,13 +800,6 @@ bool list_do_action(int context, int timeout, | |||
800 | return gui_synclist_do_button(lists, action); | 800 | return gui_synclist_do_button(lists, action); |
801 | } | 801 | } |
802 | 802 | ||
803 | bool gui_synclist_item_is_onscreen(struct gui_synclist *lists, | ||
804 | enum screen_type screen, int item) | ||
805 | { | ||
806 | int nb_lines = list_get_nb_lines(lists, screen); | ||
807 | return (unsigned)(item - lists->start_item[screen]) < (unsigned) nb_lines; | ||
808 | } | ||
809 | |||
810 | /* Simple use list implementation */ | 803 | /* Simple use list implementation */ |
811 | static int simplelist_line_count = 0, simplelist_line_remaining; | 804 | static int simplelist_line_count = 0, simplelist_line_remaining; |
812 | static int simplelist_line_pos; | 805 | static int simplelist_line_pos; |