summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-12-10 17:30:15 +0100
committerGerd Hoffmann <kraxel@redhat.com>2014-03-05 09:52:04 +0100
commit5c07d00f1b33729b23326c57b55e71a9cd9b9310 (patch)
tree630278f9527b864a432924cd6dd04ee611ec4c1d /ui
parent70b52f62b8a94c34ccc939f374bcd00c22a8e3c4 (diff)
downloadqemu-5c07d00f1b33729b23326c57b55e71a9cd9b9310.tar.gz
qemu-5c07d00f1b33729b23326c57b55e71a9cd9b9310.tar.bz2
qemu-5c07d00f1b33729b23326c57b55e71a9cd9b9310.zip
input: remove index_from_keycode (no users)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/input-legacy.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/ui/input-legacy.c b/ui/input-legacy.c
index b51e6ad5df..f38984b192 100644
--- a/ui/input-legacy.c
+++ b/ui/input-legacy.c
@@ -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;