mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Remove unused menu_entries_get
This commit is contained in:
parent
f61b9e1747
commit
98ddc80035
@ -211,39 +211,6 @@ size_t menu_entries_get_end(void)
|
||||
return menu_entries_get_size();
|
||||
}
|
||||
|
||||
/* Get an entry from the top of the menu stack */
|
||||
void menu_entries_get(size_t i, void *entry_data)
|
||||
{
|
||||
const char *label = NULL;
|
||||
const char *path = NULL;
|
||||
const char *entry_label = NULL;
|
||||
menu_file_list_cbs_t *cbs = NULL;
|
||||
enum msg_hash_enums enum_idx = MSG_UNKNOWN;
|
||||
menu_entry_t *entry = (menu_entry_t*)entry_data;
|
||||
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0);
|
||||
|
||||
menu_entries_get_last_stack(NULL, &label, NULL, &enum_idx, NULL);
|
||||
|
||||
entry->path[0] = entry->value[0] = string_is_empty(entry->label);
|
||||
|
||||
menu_entries_get_at_offset(selection_buf, i,
|
||||
&path, &entry_label, &entry->type, &entry->entry_idx, NULL);
|
||||
|
||||
cbs = menu_entries_get_actiondata_at_offset(selection_buf, i);
|
||||
|
||||
if (cbs && cbs->action_get_value)
|
||||
cbs->action_get_value(selection_buf,
|
||||
&entry->spacing, entry->type, (unsigned)i, label,
|
||||
entry->value, sizeof(entry->value),
|
||||
entry_label, path,
|
||||
entry->path, sizeof(entry->path));
|
||||
|
||||
entry->idx = (unsigned)i;
|
||||
|
||||
if (entry_label)
|
||||
strlcpy(entry->label, entry_label, sizeof(entry->label));
|
||||
}
|
||||
|
||||
/* Sets title to what the name of the current menu should be. */
|
||||
int menu_entries_get_title(char *s, size_t len)
|
||||
{
|
||||
|
@ -115,8 +115,6 @@ typedef struct menu_file_list_cbs
|
||||
|
||||
size_t menu_entries_get_end(void);
|
||||
|
||||
void menu_entries_get(size_t i, void *data_entry);
|
||||
|
||||
int menu_entries_get_title(char *title, size_t title_len);
|
||||
|
||||
bool menu_entries_current_core_is_no_core(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user