From 16b0ecd16837c5987ebc675ef4a0e1926491dc72 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 5 Dec 2013 08:19:02 +0100 Subject: input-legacy: remove kbd_mouse_has_absolute Signed-off-by: Gerd Hoffmann --- ui/input-legacy.c | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'ui') diff --git a/ui/input-legacy.c b/ui/input-legacy.c index 3ac30e228f..22796faa4f 100644 --- a/ui/input-legacy.c +++ b/ui/input-legacy.c @@ -366,20 +366,16 @@ void qemu_remove_kbd_event_handler(QEMUPutKbdEntry *entry) static void check_mode_change(void) { - static int current_is_absolute, current_has_absolute; + static int current_is_absolute; int is_absolute; - int has_absolute; is_absolute = kbd_mouse_is_absolute(); - has_absolute = kbd_mouse_has_absolute(); - if (is_absolute != current_is_absolute || - has_absolute != current_has_absolute) { + if (is_absolute != current_is_absolute) { notifier_list_notify(&mouse_mode_notifiers, NULL); } current_is_absolute = is_absolute; - current_has_absolute = has_absolute; } static void legacy_mouse_event(DeviceState *dev, QemuConsole *src, @@ -567,19 +563,6 @@ int kbd_mouse_is_absolute(void) return QTAILQ_FIRST(&mouse_handlers)->qemu_put_mouse_event_absolute; } -int kbd_mouse_has_absolute(void) -{ - QEMUPutMouseEntry *entry; - - QTAILQ_FOREACH(entry, &mouse_handlers, node) { - if (entry->qemu_put_mouse_event_absolute) { - return 1; - } - } - - return 0; -} - MouseInfoList *qmp_query_mice(Error **errp) { MouseInfoList *mice_list = NULL; -- cgit v1.2.1