From da9b3a92563d6ed977504ca48cfe8162f3d4e8f4 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 8 Jun 2020 18:21:12 -0400 Subject: [PATCH] win32: Drop pointless vfuncs These are not useful. --- gdk/win32/gdkdevice-virtual.c | 13 ------------- gdk/win32/gdkdevice-win32.c | 12 ------------ gdk/win32/gdkdevice-wintab.c | 12 ------------ 3 files changed, 37 deletions(-) diff --git a/gdk/win32/gdkdevice-virtual.c b/gdk/win32/gdkdevice-virtual.c index 4435cf5a20..f0643da42c 100644 --- a/gdk/win32/gdkdevice-virtual.c +++ b/gdk/win32/gdkdevice-virtual.c @@ -63,18 +63,6 @@ _gdk_device_virtual_set_active (GdkDevice *device, g_signal_emit_by_name (G_OBJECT (device), "changed"); } -static gboolean -gdk_device_virtual_get_history (GdkDevice *device, - GdkSurface *window, - guint32 start, - guint32 stop, - GdkTimeCoord ***events, - gint *n_events) -{ - /* History is only per slave device */ - return FALSE; -} - static void gdk_device_virtual_get_state (GdkDevice *device, GdkSurface *window, @@ -188,7 +176,6 @@ gdk_device_virtual_class_init (GdkDeviceVirtualClass *klass) { GdkDeviceClass *device_class = GDK_DEVICE_CLASS (klass); - device_class->get_history = gdk_device_virtual_get_history; device_class->get_state = gdk_device_virtual_get_state; device_class->set_surface_cursor = gdk_device_virtual_set_surface_cursor; device_class->query_state = gdk_device_virtual_query_state; diff --git a/gdk/win32/gdkdevice-win32.c b/gdk/win32/gdkdevice-win32.c index 588e624db3..ec8198f4ba 100644 --- a/gdk/win32/gdkdevice-win32.c +++ b/gdk/win32/gdkdevice-win32.c @@ -29,17 +29,6 @@ G_DEFINE_TYPE (GdkDeviceWin32, gdk_device_win32, GDK_TYPE_DEVICE) -static gboolean -gdk_device_win32_get_history (GdkDevice *device, - GdkSurface *window, - guint32 start, - guint32 stop, - GdkTimeCoord ***events, - gint *n_events) -{ - return FALSE; -} - static void gdk_device_win32_get_state (GdkDevice *device, GdkSurface *window, @@ -235,7 +224,6 @@ gdk_device_win32_class_init (GdkDeviceWin32Class *klass) { GdkDeviceClass *device_class = GDK_DEVICE_CLASS (klass); - device_class->get_history = gdk_device_win32_get_history; device_class->get_state = gdk_device_win32_get_state; device_class->set_surface_cursor = gdk_device_win32_set_surface_cursor; device_class->query_state = gdk_device_win32_query_state; diff --git a/gdk/win32/gdkdevice-wintab.c b/gdk/win32/gdkdevice-wintab.c index a05b56e2c4..052c71bee6 100644 --- a/gdk/win32/gdkdevice-wintab.c +++ b/gdk/win32/gdkdevice-wintab.c @@ -28,17 +28,6 @@ G_DEFINE_TYPE (GdkDeviceWintab, gdk_device_wintab, GDK_TYPE_DEVICE) -static gboolean -gdk_device_wintab_get_history (GdkDevice *device, - GdkSurface *window, - guint32 start, - guint32 stop, - GdkTimeCoord ***events, - gint *n_events) -{ - return FALSE; -} - static GdkModifierType get_current_mask (void) { @@ -267,7 +256,6 @@ gdk_device_wintab_class_init (GdkDeviceWintabClass *klass) { GdkDeviceClass *device_class = GDK_DEVICE_CLASS (klass); - device_class->get_history = gdk_device_wintab_get_history; device_class->get_state = gdk_device_wintab_get_state; device_class->set_surface_cursor = gdk_device_wintab_set_surface_cursor; device_class->query_state = gdk_device_wintab_query_state;