summaryrefslogtreecommitdiff
path: root/gdk/broadway/gdkdevice-broadway.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2020-07-28 15:50:15 +0200
committerCarlos Garnacho <carlosg@gnome.org>2020-07-28 17:36:18 +0200
commita2876b5cb43d6e77ee0394d9985aa5f2947d02d3 (patch)
treef86af61ac45a948465404aa0330adc54dd6f9446 /gdk/broadway/gdkdevice-broadway.c
parent5f8258109e9bad2bf2e19cf9b65ba8ed35182dd8 (diff)
downloadgtk+-a2876b5cb43d6e77ee0394d9985aa5f2947d02d3.tar.gz
gdkdevice: Remove gdk_device_get_state()
This is not needed nor recommended anymore, all reasons to maybe need this were all kept within gdk.
Diffstat (limited to 'gdk/broadway/gdkdevice-broadway.c')
-rw-r--r--gdk/broadway/gdkdevice-broadway.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/gdk/broadway/gdkdevice-broadway.c b/gdk/broadway/gdkdevice-broadway.c
index 8fe6eab346..7b2d45670b 100644
--- a/gdk/broadway/gdkdevice-broadway.c
+++ b/gdk/broadway/gdkdevice-broadway.c
@@ -23,10 +23,6 @@
#include "gdksurfaceprivate.h"
#include "gdkprivate-broadway.h"
-static void gdk_broadway_device_get_state (GdkDevice *device,
- GdkSurface *surface,
- double *axes,
- GdkModifierType *mask);
static void gdk_broadway_device_set_surface_cursor (GdkDevice *device,
GdkSurface *surface,
GdkCursor *cursor);
@@ -58,7 +54,6 @@ gdk_broadway_device_class_init (GdkBroadwayDeviceClass *klass)
{
GdkDeviceClass *device_class = GDK_DEVICE_CLASS (klass);
- device_class->get_state = gdk_broadway_device_get_state;
device_class->set_surface_cursor = gdk_broadway_device_set_surface_cursor;
device_class->query_state = gdk_broadway_device_query_state;
device_class->grab = gdk_broadway_device_grab;
@@ -78,23 +73,6 @@ gdk_broadway_device_init (GdkBroadwayDevice *device_core)
}
static void
-gdk_broadway_device_get_state (GdkDevice *device,
- GdkSurface *surface,
- double *axes,
- GdkModifierType *mask)
-{
- double x, y;
-
- gdk_surface_get_device_position (surface, device, &x, &y, mask);
-
- if (axes)
- {
- axes[0] = x;
- axes[1] = y;
- }
-}
-
-static void
gdk_broadway_device_set_surface_cursor (GdkDevice *device,
GdkSurface *surface,
GdkCursor *cursor)