input: remove index_from_keycode (no users)

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Gerd Hoffmann 2013-12-10 17:30:15 +01:00
parent 70b52f62b8
commit 5c07d00f1b
2 changed files with 0 additions and 15 deletions

View 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;