Remove code duplication action_ok_file_path

This commit is contained in:
twinaphex 2014-11-20 00:26:15 +01:00
parent 821e27b11e
commit e9d0803ddc

View File

@ -564,12 +564,6 @@ static int action_ok_file_load(const char *path,
return 0;
}
static int action_ok_file_path(const char *path,
const char *label, unsigned type, size_t idx)
{
return menu_action_setting_set(type, label, MENU_ACTION_OK);
}
static int action_ok_set_path(const char *path,
const char *label, unsigned type, size_t idx)
{
@ -2099,8 +2093,6 @@ static int menu_entries_cbs_init_bind_ok_first(menu_file_list_cbs_t *cbs,
cbs->action_ok = action_ok_restart_content;
else if (!strcmp(label, "take_screenshot"))
cbs->action_ok = action_ok_screenshot;
else if (!strcmp(label, "video_refresh_rate_auto"))
cbs->action_ok = action_ok_file_path;
else
switch (type)
{
@ -2136,9 +2128,6 @@ static int menu_entries_cbs_init_bind_ok_first(menu_file_list_cbs_t *cbs,
else
return -1;
break;
case MENU_FILE_PATH:
cbs->action_ok = action_ok_file_path;
break;
case MENU_FILE_FONT:
case MENU_FILE_OVERLAY:
case MENU_FILE_AUDIOFILTER: