Commit 5c07d00f authored by Gerd Hoffmann's avatar Gerd Hoffmann
Browse files

input: remove index_from_keycode (no users)



Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent 70b52f62
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);
+0 −14
Original line number Diff line number Diff line
@@ -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;