summaryrefslogtreecommitdiff
path: root/apps/gui/list.h
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-09-19 11:38:09 +0100
committerAidan MacDonald <amachronic@protonmail.com>2022-10-05 10:22:55 -0400
commitead172c05d57568d201709c5fac77cbb8982bbd0 (patch)
tree10ab4de5bafb8092d1b1a3cd27ca8680cf650def /apps/gui/list.h
parentfe6aa21e9eb88f49005863efd2003d0982920048 (diff)
downloadrockbox-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.h4
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
200extern void list_init(void); 200extern void list_init(void);
201/* parse global setting to static int */
202extern void gui_list_screen_scroll_step(int ofs);
203 201
204/* parse global setting to static bool */
205extern void gui_list_screen_scroll_out_of_view(bool enable);
206extern void gui_synclist_init_display_settings(struct gui_synclist * list); 202extern void gui_synclist_init_display_settings(struct gui_synclist * list);
207extern void gui_synclist_init( 203extern void gui_synclist_init(
208 struct gui_synclist * lists, 204 struct gui_synclist * lists,