From b9d28ea76dd53d4ffacf76a05c89f6f4d30883bb Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 11 Mar 2021 05:14:07 +0100 Subject: [PATCH] Cleanups --- retroarch.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/retroarch.c b/retroarch.c index b6a2961b7e..0df5355a5b 100644 --- a/retroarch.c +++ b/retroarch.c @@ -1921,8 +1921,7 @@ static int generic_menu_iterate( file_list_t *selection_buf = menu_list ? MENU_LIST_GET_SELECTION(menu_list, (unsigned)0) : NULL; size_t selection = menu_st->selection_ptr; menu_file_list_cbs_t *cbs = selection_buf ? - (menu_file_list_cbs_t*) - file_list_get_actiondata_at_offset(selection_buf, selection) + (menu_file_list_cbs_t*)selection_buf->list[selection].actiondata : NULL; if (cbs && cbs->enum_idx != MSG_UNKNOWN) @@ -2358,9 +2357,6 @@ static bool menu_driver_displaylist_push(menu_displaylist_ctx_entry_t *entry) menu_file_list_cbs_t *cbs = (menu_file_list_cbs_t*) list->list[list->size - 1].actiondata; - if (!entry) - return false; - menu_displaylist_info_init(&info); if (list && list->size)