Remove unused ked status ked_boot.
authorGeoff Levand <geoffrey.levand@am.sony.com>
Thu, 9 Jul 2009 17:40:44 +0000 (10:40 -0700)
committerGeoff Levand <geoffrey.levand@am.sony.com>
Thu, 9 Jul 2009 17:40:44 +0000 (10:40 -0700)
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
ui/ncurses/nc-ked.h

index 752b10a5517d2e1e6e61393d4f4e48560d99752b..bfb74b6a539771fca0b838ca89c52d6a05791958 100644 (file)
@@ -140,7 +140,7 @@ static void cui_ked_on_exit(struct ked *ked, enum ked_result ked_result,
 {
        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 *ked, enum ked_result ked_result,
        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)
index 36ed4f17520fd331f73edaa735e627a4a92e3119..759c006f0770d9beb6b4d3775dfd0ae7eadc617e 100644 (file)
@@ -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,
 };
 
 /**