From 50bb491ba237342d18a2db9f8dd060c5f7fbdf3c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 25 Sep 2018 14:45:55 +0200 Subject: [PATCH] Bind driver settings action OK callback to dropdown list --- menu/cbs/menu_cbs_select.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/menu/cbs/menu_cbs_select.c b/menu/cbs/menu_cbs_select.c index 87880cc5b1..34aa9dddd6 100644 --- a/menu/cbs/menu_cbs_select.c +++ b/menu/cbs/menu_cbs_select.c @@ -115,12 +115,6 @@ static int action_select_path_use_directory(const char *path, return action_ok_path_use_directory(path, label, type, idx, 0 /* unused */); } -static int action_select_driver_setting(const char *path, const char *label, unsigned type, - size_t idx) -{ - return bind_right_generic(type, label, true); -} - static int action_select_core_setting(const char *path, const char *label, unsigned type, size_t idx) { @@ -269,17 +263,6 @@ int menu_cbs_init_bind_select(menu_file_list_cbs_t *cbs, } #endif - if (cbs->setting) - { - uint64_t flags = cbs->setting->flags; - - if (flags & SD_FLAG_IS_DRIVER) - { - BIND_ACTION_SELECT(cbs, action_select_driver_setting); - return 0; - } - } - if ((type >= MENU_SETTINGS_CORE_OPTION_START)) { BIND_ACTION_SELECT(cbs, action_select_core_setting);