@@ -140,7 +140,7 @@ static void cui_ked_on_exit(struct ked *
{
struct cui *cui = cui_from_arg(ked->scr.ui_ctx);
- if (ked_result == ked_update || ked_result == ked_boot) {
+ if (ked_result == ked_update) {
struct pmenu_item *i = pmenu_find_selected(cui->main);
struct cui_opt_data *cod = cod_from_item(i);
@@ -159,11 +159,6 @@ static void cui_ked_on_exit(struct ked *
cui_set_current(cui, &cui->main->scr);
talloc_free(ked);
-
- if (ked_result == ked_boot) {
- struct pmenu_item *i = pmenu_find_selected(cui->main);
- i->on_execute(i);
- }
}
int cui_ked_run(struct pmenu_item *item)
@@ -40,13 +40,11 @@ enum ked_attr_cursor {
* enum ked_result - Result code for ked:on_exit().
* @ked_cancel: The user canceled the operation.
* @ked_update: The args were updated.
- * @ked_boot: The user requested a boot of this item.
*/
enum ked_result {
ked_cancel,
ked_update,
- ked_boot,
};
/**
Remove unused code for the ked return status ked_boot. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> --- ui/ncurses/nc-cui.c | 7 +------ ui/ncurses/nc-ked.h | 2 -- 2 files changed, 1 insertion(+), 8 deletions(-)