From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W85Qn-00016G-UN for qemu-devel@nongnu.org; Tue, 28 Jan 2014 04:58:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W85Qc-0006ml-Tc for qemu-devel@nongnu.org; Tue, 28 Jan 2014 04:58:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:11923) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W85Qc-0006mb-LQ for qemu-devel@nongnu.org; Tue, 28 Jan 2014 04:57:58 -0500 From: Gerd Hoffmann Date: Tue, 28 Jan 2014 10:57:35 +0100 Message-Id: <1390903055-479-43-git-send-email-kraxel@redhat.com> In-Reply-To: <1390903055-479-1-git-send-email-kraxel@redhat.com> References: <1390903055-479-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 42/42] input: remove index_from_keycode (no users) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , Anthony Liguori Signed-off-by: Gerd Hoffmann --- include/ui/console.h | 1 - ui/input-legacy.c | 14 -------------- 2 files changed, 15 deletions(-) diff --git a/include/ui/console.h b/include/ui/console.h index 9a282cb..3bf69ee 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -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); diff --git a/ui/input-legacy.c b/ui/input-legacy.c index b51e6ad..f38984b 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; -- 1.8.3.1