summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-01-22 10:28:08 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-02-05 10:45:44 +0100
commit85b03694e1843141eaf851fb15300ae12cc76468 (patch)
treefbe6e77dc515a7b82c63028dd39096a561361282
parent47ddfab18a31b3bc0464893b1dc2ba6fcda41bf1 (diff)
downloadfocaccia-qemu-85b03694e1843141eaf851fb15300ae12cc76468.tar.gz
focaccia-qemu-85b03694e1843141eaf851fb15300ae12cc76468.zip
sdl2: remove sdl2_reset_keys() function
No users left, dead code.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20190122092814.14919-3-kraxel@redhat.com
-rw-r--r--include/ui/sdl2.h1
-rw-r--r--ui/sdl2-input.c16
2 files changed, 0 insertions, 17 deletions
diff --git a/include/ui/sdl2.h b/include/ui/sdl2.h
index f6db642b65..71f5cfc6e3 100644
--- a/include/ui/sdl2.h
+++ b/include/ui/sdl2.h
@@ -44,7 +44,6 @@ void sdl2_window_destroy(struct sdl2_console *scon);
 void sdl2_window_resize(struct sdl2_console *scon);
 void sdl2_poll_events(struct sdl2_console *scon);
 
-void sdl2_reset_keys(struct sdl2_console *scon);
 void sdl2_process_key(struct sdl2_console *scon,
                       SDL_KeyboardEvent *ev);
 
diff --git a/ui/sdl2-input.c b/ui/sdl2-input.c
index 1378b63dd9..208266c6a5 100644
--- a/ui/sdl2-input.c
+++ b/ui/sdl2-input.c
@@ -32,22 +32,6 @@
 
 static uint8_t modifiers_state[SDL_NUM_SCANCODES];
 
-void sdl2_reset_keys(struct sdl2_console *scon)
-{
-    QemuConsole *con = scon ? scon->dcl.con : NULL;
-    int i;
-
-    for (i = 0 ;
-         i < SDL_NUM_SCANCODES && i < qemu_input_map_usb_to_qcode_len ;
-         i++) {
-        if (modifiers_state[i]) {
-            int qcode = qemu_input_map_usb_to_qcode[i];
-            qemu_input_event_send_key_qcode(con, qcode, false);
-            modifiers_state[i] = 0;
-        }
-    }
-}
-
 void sdl2_process_key(struct sdl2_console *scon,
                       SDL_KeyboardEvent *ev)
 {