From 167fdb5832847ddcc49e4f2d692dab6c6501d2c6 Mon Sep 17 00:00:00 2001 From: Kp Date: Sat, 6 Jul 2013 03:02:37 +0000 Subject: [PATCH] Remove unused key_dialog_handler --- ui/keypress.c | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/ui/keypress.c b/ui/keypress.c index ecf9c66fc..0a43f9b59 100644 --- a/ui/keypress.c +++ b/ui/keypress.c @@ -95,39 +95,3 @@ int DecodeKeyText( char * text ) } return -1; } - - -typedef struct key_dialog -{ - UI_GADGET_BUTTON *DoneButton; - char text[100]; -} key_dialog; - -static int key_dialog_handler(UI_DIALOG *dlg, d_event *event, key_dialog *k) -{ - int keypress = 0; - int rval = 0; - - if (event->type == EVENT_KEY_COMMAND) - keypress = event_key_get(event); - else if (event->type == EVENT_UI_DIALOG_DRAW) - { - ui_dprintf_at( dlg, 10, 100, "%s ", k->text ); - return 1; - } - - if (keypress > 0) - { - - GetKeyDescription( k->text, keypress ); - rval = 1; - } - - if (GADGET_PRESSED(k->DoneButton)) - { - ui_close_dialog(dlg); - rval = 1; - } - - return rval; -}