mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Get rid of the hash generation in menu_cbs.c
This commit is contained in:
parent
79dc998a7b
commit
66eed86ccf
@ -210,8 +210,6 @@ void menu_cbs_init(void *data,
|
||||
menu_ctx_bind_t bind_info;
|
||||
const char *repr_label = NULL;
|
||||
const char *menu_label = NULL;
|
||||
uint32_t label_hash = 0;
|
||||
uint32_t menu_label_hash = 0;
|
||||
enum msg_hash_enums enum_idx = MSG_UNKNOWN;
|
||||
file_list_t *list = (file_list_t*)data;
|
||||
if (!list)
|
||||
@ -222,9 +220,6 @@ void menu_cbs_init(void *data,
|
||||
if (!label || !menu_label)
|
||||
return;
|
||||
|
||||
label_hash = msg_hash_calculate(label);
|
||||
menu_label_hash = msg_hash_calculate(menu_label);
|
||||
|
||||
#ifdef DEBUG_LOG
|
||||
RARCH_LOG("\n");
|
||||
#endif
|
||||
@ -343,7 +338,6 @@ void menu_cbs_init(void *data,
|
||||
bind_info.label = label;
|
||||
bind_info.type = type;
|
||||
bind_info.idx = idx;
|
||||
bind_info.label_hash = label_hash;
|
||||
|
||||
menu_driver_ctl(RARCH_MENU_CTL_BIND_INIT, &bind_info);
|
||||
}
|
||||
|
@ -378,7 +378,6 @@ typedef struct menu_ctx_bind
|
||||
const char *path;
|
||||
const char *label;
|
||||
unsigned type;
|
||||
uint32_t label_hash;
|
||||
size_t idx;
|
||||
int retcode;
|
||||
menu_file_list_cbs_t *cbs;
|
||||
|
Loading…
x
Reference in New Issue
Block a user