diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-09-19 11:38:09 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-10-05 10:22:55 -0400 |
commit | ead172c05d57568d201709c5fac77cbb8982bbd0 (patch) | |
tree | 10ab4de5bafb8092d1b1a3cd27ca8680cf650def /apps/gui/list.h | |
parent | fe6aa21e9eb88f49005863efd2003d0982920048 (diff) | |
download | rockbox-ead172c05d57568d201709c5fac77cbb8982bbd0.tar.gz rockbox-ead172c05d57568d201709c5fac77cbb8982bbd0.zip |
gui: Remove redundant copies of list scrolling settings
gui_list_screen_scroll_step() and gui_list_screen_scroll_out_of_view()
just copy the global setting into a local static variable.
Since they don't do anything special when the setting changes
it's simpler to use the global setting directly.
Change-Id: Ib6a7bf4e09b6dabbc1597cf28ddbafc0bc857526
Diffstat (limited to 'apps/gui/list.h')
-rw-r--r-- | apps/gui/list.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/apps/gui/list.h b/apps/gui/list.h index 388e3d2006..e514f7252e 100644 --- a/apps/gui/list.h +++ b/apps/gui/list.h | |||
@@ -198,11 +198,7 @@ struct gui_synclist | |||
198 | 198 | ||
199 | 199 | ||
200 | extern void list_init(void); | 200 | extern void list_init(void); |
201 | /* parse global setting to static int */ | ||
202 | extern void gui_list_screen_scroll_step(int ofs); | ||
203 | 201 | ||
204 | /* parse global setting to static bool */ | ||
205 | extern void gui_list_screen_scroll_out_of_view(bool enable); | ||
206 | extern void gui_synclist_init_display_settings(struct gui_synclist * list); | 202 | extern void gui_synclist_init_display_settings(struct gui_synclist * list); |
207 | extern void gui_synclist_init( | 203 | extern void gui_synclist_init( |
208 | struct gui_synclist * lists, | 204 | struct gui_synclist * lists, |