input: remove index_from_keycode (no users)
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 10 Dec 2013 16:30:15 +0000 (17:30 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 5 Mar 2014 08:52:04 +0000 (09:52 +0100)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
include/ui/console.h
ui/input-legacy.c

index 9a282cb..3bf69ee 100644 (file)
@@ -329,7 +329,6 @@ void curses_display_init(DisplayState *ds, int full_screen);
 
 /* input.c */
 int index_from_key(const char *key);
-int index_from_keycode(int code);
 
 /* gtk.c */
 void early_gtk_display_init(void);
index b51e6ad..f38984b 100644 (file)
@@ -220,20 +220,6 @@ int index_from_key(const char *key)
     return i;
 }
 
-int index_from_keycode(int code)
-{
-    int i;
-
-    for (i = 0; i < Q_KEY_CODE_MAX; i++) {
-        if (key_defs[i] == code) {
-            break;
-        }
-    }
-
-    /* Return Q_KEY_CODE_MAX if the code is invalid */
-    return i;
-}
-
 static int *keycodes;
 static int keycodes_size;
 static QEMUTimer *key_timer;