From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsVkB-0001H7-RB for qemu-devel@nongnu.org; Mon, 16 Dec 2013 05:50:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VsVjx-0000w1-Ih for qemu-devel@nongnu.org; Mon, 16 Dec 2013 05:49:47 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56998) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsVjw-0000vA-BF for qemu-devel@nongnu.org; Mon, 16 Dec 2013 05:49:33 -0500 From: Gerd Hoffmann Date: Mon, 16 Dec 2013 11:49:18 +0100 Message-Id: <1387190958-19470-43-git-send-email-kraxel@redhat.com> In-Reply-To: <1387190958-19470-1-git-send-email-kraxel@redhat.com> References: <1387190958-19470-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