From f518da61bf17be926b37181b7558d3a0e49e83ca Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 17 Oct 2014 01:37:17 +0200 Subject: [PATCH] (menu_action.c) Cut down on code duplication --- frontend/menu/menu_action.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/frontend/menu/menu_action.c b/frontend/menu/menu_action.c index 00ca7a18be..d68b9bc94a 100644 --- a/frontend/menu/menu_action.c +++ b/frontend/menu/menu_action.c @@ -143,6 +143,7 @@ int menu_action_handle_setting(rarch_setting_t *setting, case ST_BOOL: case ST_UINT: case ST_FLOAT: + case ST_STRING: return setting_handler(setting, action); case ST_PATH: return menu_entries_set_current_path_selection(setting, @@ -166,24 +167,6 @@ int menu_action_handle_setting(rarch_setting_t *setting, return -1; } break; - case ST_STRING: - switch (action) - { - case MENU_ACTION_LEFT: - case MENU_ACTION_RIGHT: - if (setting->action_toggle) - setting->action_toggle(setting, action); - break; - case MENU_ACTION_START: - if (setting->action_start) - setting->action_start(setting); - break; - case MENU_ACTION_OK: - if (setting->action_ok) - setting->action_ok(setting, action); - break; - } - break; default: break; }