From 97be5b164fc57d1b7ca5bb3f0b2578146ca94001 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 8 Jul 2016 19:14:29 +0200 Subject: [PATCH] Cleanups --- menu/cbs/menu_cbs_get_value.c | 26 +------------------------- menu/menu_cbs.c | 2 +- menu/menu_cbs.h | 2 +- 3 files changed, 3 insertions(+), 27 deletions(-) diff --git a/menu/cbs/menu_cbs_get_value.c b/menu/cbs/menu_cbs_get_value.c index 311f72733b..1bac2873f3 100644 --- a/menu/cbs/menu_cbs_get_value.c +++ b/menu/cbs/menu_cbs_get_value.c @@ -1743,7 +1743,7 @@ static int menu_cbs_init_bind_get_string_representation_compare_type( int menu_cbs_init_bind_get_string_representation(menu_file_list_cbs_t *cbs, const char *path, const char *label, unsigned type, size_t idx, - uint32_t label_hash, uint32_t menu_label_hash) + uint32_t label_hash) { if (!cbs) return -1; @@ -1780,30 +1780,6 @@ int menu_cbs_init_bind_get_string_representation(menu_file_list_cbs_t *cbs, break; } } - else - { - switch (menu_label_hash) - { - case MENU_LABEL_LOAD_CONTENT_HISTORY: - BIND_ACTION_GET_VALUE(cbs, - menu_action_setting_disp_set_label_content_history); - return 0; - case MENU_LABEL_SYSTEM_INFORMATION: - BIND_ACTION_GET_VALUE(cbs, - menu_action_setting_disp_set_label_system_information); - return 0; - case MENU_LABEL_DEBUG_INFORMATION: - BIND_ACTION_GET_VALUE(cbs, - menu_action_setting_disp_set_label_debug_information); - return 0; - case MENU_LABEL_ACHIEVEMENT_LIST: - BIND_ACTION_GET_VALUE(cbs, - menu_action_setting_disp_set_label_achievement_information); - return 0; - default: - break; - } - } if (type >= MENU_SETTINGS_PLAYLIST_ASSOCIATION_START) { diff --git a/menu/menu_cbs.c b/menu/menu_cbs.c index 1d6b03218a..e763651106 100644 --- a/menu/menu_cbs.c +++ b/menu/menu_cbs.c @@ -118,7 +118,7 @@ void menu_cbs_init(void *data, menu_cbs_init_log(repr_label, "REFRESH", cbs->action_refresh_ident); - menu_cbs_init_bind_get_string_representation(cbs, path, label, type, idx, label_hash, menu_label_hash); + menu_cbs_init_bind_get_string_representation(cbs, path, label, type, idx, label_hash); menu_cbs_init_log(repr_label, "GET VALUE", cbs->action_get_value_ident); diff --git a/menu/menu_cbs.h b/menu/menu_cbs.h index d8940c7d3e..d270a98362 100644 --- a/menu/menu_cbs.h +++ b/menu/menu_cbs.h @@ -146,7 +146,7 @@ int menu_cbs_init_bind_refresh(menu_file_list_cbs_t *cbs, int menu_cbs_init_bind_get_string_representation(menu_file_list_cbs_t *cbs, const char *path, const char *label, unsigned type, size_t idx, - uint32_t label_hash, uint32_t menu_label_hash); + uint32_t label_hash); int menu_cbs_init_bind_label(menu_file_list_cbs_t *cbs, const char *path, const char *label, unsigned type, size_t idx);