mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Remove list_clear/list_set_selection callbacks
This commit is contained in:
parent
24f9d740d0
commit
804b9112d4
@ -20,8 +20,6 @@ typedef struct menu_ctx_driver_backend
|
||||
int (*iterate)(unsigned);
|
||||
void (*list_insert)(void *, const char *, const char *, unsigned, size_t);
|
||||
void (*list_delete)(void *, size_t, size_t);
|
||||
void (*list_clear)(void *);
|
||||
void (*list_set_selection)(void *);
|
||||
const char *ident;
|
||||
} menu_ctx_driver_backend_t;
|
||||
|
||||
|
@ -789,20 +789,11 @@ static void menu_common_list_delete(void *data, size_t idx,
|
||||
list->list[idx].actiondata = NULL;
|
||||
}
|
||||
|
||||
static void menu_common_list_clear(void *data)
|
||||
{
|
||||
}
|
||||
|
||||
static void menu_common_list_set_selection(void *data)
|
||||
{
|
||||
}
|
||||
|
||||
menu_ctx_driver_backend_t menu_ctx_backend_common = {
|
||||
menu_common_iterate,
|
||||
menu_common_list_insert,
|
||||
menu_common_list_delete,
|
||||
menu_common_list_clear,
|
||||
menu_common_list_set_selection,
|
||||
|
||||
"menu_common",
|
||||
};
|
||||
|
@ -528,7 +528,5 @@ menu_ctx_driver_backend_t menu_ctx_backend_lakka = {
|
||||
menu_lakka_iterate,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
"menu_lakka",
|
||||
};
|
||||
|
@ -501,3 +501,11 @@ unsigned menu_common_type_is(const char *label, unsigned type)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void menu_common_list_clear(void *data)
|
||||
{
|
||||
}
|
||||
|
||||
void menu_common_list_set_selection(void *data)
|
||||
{
|
||||
}
|
||||
|
@ -157,6 +157,10 @@ unsigned menu_common_type_is(const char *label, unsigned type);
|
||||
|
||||
void apply_deferred_settings(void);
|
||||
|
||||
void menu_common_list_clear(void *data);
|
||||
|
||||
void menu_common_list_set_selection(void *data);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -217,8 +217,7 @@ end:
|
||||
if (driver.menu_ctx->list_set_selection)
|
||||
driver.menu_ctx->list_set_selection(list);
|
||||
|
||||
if (driver.menu_ctx->backend->list_set_selection)
|
||||
driver.menu_ctx->backend->list_set_selection(list);
|
||||
menu_common_list_set_selection(list);
|
||||
}
|
||||
|
||||
void menu_list_clear(file_list_t *list)
|
||||
@ -229,8 +228,7 @@ void menu_list_clear(file_list_t *list)
|
||||
if (driver.menu_ctx->list_clear)
|
||||
driver.menu_ctx->list_clear(list);
|
||||
|
||||
if (driver.menu_ctx->backend->list_clear)
|
||||
driver.menu_ctx->backend->list_clear(list);
|
||||
menu_common_list_clear(list);
|
||||
|
||||
end:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user