diff mbox

[22/31] petitboot: Remove unused ked status ked_boot.

Message ID 20090708001136.433580126@am.sony.com
State New
Headers show

Commit Message

Geoff Levand July 8, 2009, 12:11 a.m. UTC
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(-)
diff mbox

Patch

--- a/ui/ncurses/nc-cui.c
+++ b/ui/ncurses/nc-cui.c
@@ -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)
--- a/ui/ncurses/nc-ked.h
+++ b/ui/ncurses/nc-ked.h
@@ -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,
 };
 
 /**