diff options
Diffstat (limited to 'apps/gui/list.c')
-rw-r--r-- | apps/gui/list.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c index ce444cc9c2..b1120aa794 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c | |||
@@ -317,10 +317,6 @@ static void gui_list_put_selection_on_screen(struct gui_synclist * gui_list, | |||
317 | 317 | ||
318 | static void edge_beep(struct gui_synclist * gui_list, bool wrap) | 318 | static void edge_beep(struct gui_synclist * gui_list, bool wrap) |
319 | { | 319 | { |
320 | #if CONFIG_CODEC != SWCODEC | ||
321 | (void)gui_list; | ||
322 | (void)wrap; | ||
323 | #else | ||
324 | if (global_settings.keyclick) | 320 | if (global_settings.keyclick) |
325 | { | 321 | { |
326 | list_speak_item *cb = gui_list->callback_speak_item; | 322 | list_speak_item *cb = gui_list->callback_speak_item; |
@@ -354,7 +350,6 @@ static void edge_beep(struct gui_synclist * gui_list, bool wrap) | |||
354 | talk_force_shutup(); | 350 | talk_force_shutup(); |
355 | } | 351 | } |
356 | } | 352 | } |
357 | #endif | ||
358 | } | 353 | } |
359 | 354 | ||
360 | static void _gui_synclist_speak_item(struct gui_synclist *lists) | 355 | static void _gui_synclist_speak_item(struct gui_synclist *lists) |
@@ -615,7 +610,6 @@ static void gui_synclist_scroll_left(struct gui_synclist * lists) | |||
615 | } | 610 | } |
616 | #endif /* HAVE_LCD_BITMAP */ | 611 | #endif /* HAVE_LCD_BITMAP */ |
617 | 612 | ||
618 | #if CONFIG_CODEC == SWCODEC | ||
619 | bool gui_synclist_keyclick_callback(int action, void* data) | 613 | bool gui_synclist_keyclick_callback(int action, void* data) |
620 | { | 614 | { |
621 | struct gui_synclist *lists = (struct gui_synclist *)data; | 615 | struct gui_synclist *lists = (struct gui_synclist *)data; |
@@ -633,7 +627,6 @@ bool gui_synclist_keyclick_callback(int action, void* data) | |||
633 | 627 | ||
634 | return action != ACTION_NONE; | 628 | return action != ACTION_NONE; |
635 | } | 629 | } |
636 | #endif | ||
637 | 630 | ||
638 | /* | 631 | /* |
639 | * Magic to make sure the list gets updated correctly if the skin does | 632 | * Magic to make sure the list gets updated correctly if the skin does |
@@ -864,9 +857,7 @@ bool list_do_action(int context, int timeout, | |||
864 | do_button, and places the action from get_action in *action. */ | 857 | do_button, and places the action from get_action in *action. */ |
865 | { | 858 | { |
866 | timeout = list_do_action_timeout(lists, timeout); | 859 | timeout = list_do_action_timeout(lists, timeout); |
867 | #if CONFIG_CODEC == SWCODEC | ||
868 | keyclick_set_callback(gui_synclist_keyclick_callback, lists); | 860 | keyclick_set_callback(gui_synclist_keyclick_callback, lists); |
869 | #endif | ||
870 | *action = get_action(context, timeout); | 861 | *action = get_action(context, timeout); |
871 | return gui_synclist_do_button(lists, action, wrap); | 862 | return gui_synclist_do_button(lists, action, wrap); |
872 | } | 863 | } |