1
0
Fork 0
forked from len0rd/rockbox

list: remove redundant setting of icon callback to NULL

gui_synclist_init already does this for us

Change-Id: I1288d389c6191416cbc3da37a333b1cad84ee779
This commit is contained in:
Christian Soffke 2024-07-28 15:32:43 +02:00
parent 68fc5b4a7a
commit 6d19214eeb
12 changed files with 0 additions and 14 deletions

View file

@ -2455,7 +2455,6 @@ static int list_choose(const char *list_str, const char *title, int sel)
struct gui_synclist list;
rb->gui_synclist_init(&list, &config_choices_formatter, (void*)list_str, false, 1, NULL);
rb->gui_synclist_set_icon_callback(&list, NULL);
rb->gui_synclist_set_nb_items(&list, n);
rb->gui_synclist_select_item(&list, sel);
@ -2668,7 +2667,6 @@ static bool config_menu_core(int which)
struct gui_synclist list;
rb->gui_synclist_init(&list, &config_formatter, config, false, 1, NULL);
rb->gui_synclist_set_icon_callback(&list, NULL);
rb->gui_synclist_set_nb_items(&list, n);
rb->gui_synclist_select_item(&list, 0);
@ -2763,7 +2761,6 @@ static int do_preset_menu(struct preset_menu *menu, char *title, int selected)
struct gui_synclist list;
rb->gui_synclist_init(&list, &preset_formatter, menu, false, 1, NULL);
rb->gui_synclist_set_icon_callback(&list, NULL);
rb->gui_synclist_set_nb_items(&list, menu->n_entries);
rb->gui_synclist_select_item(&list, selected);