[gnome-settings-daemon/wip/hadess/old-xlibs-removal: 2/5] common: Remove unused supports_xinput2_devices()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/wip/hadess/old-xlibs-removal: 2/5] common: Remove unused supports_xinput2_devices()
- Date: Thu, 25 Oct 2018 11:33:33 +0000 (UTC)
commit c20a7f47e53b5481e2ada7cd879ea0a0b3467b7f
Author: Bastien Nocera <hadess hadess net>
Date: Thu Oct 25 13:19:23 2018 +0200
common: Remove unused supports_xinput2_devices()
Last user was removed in 1993de0
plugins/common/gsd-input-helper.c | 42 ---------------------------------------
plugins/common/gsd-input-helper.h | 1 -
2 files changed, 43 deletions(-)
---
diff --git a/plugins/common/gsd-input-helper.c b/plugins/common/gsd-input-helper.c
index 3a7c4ce5..f778fda5 100644
--- a/plugins/common/gsd-input-helper.c
+++ b/plugins/common/gsd-input-helper.c
@@ -97,23 +97,6 @@ device_set_property (XDevice *xdevice,
return TRUE;
}
-static gboolean
-supports_xinput_devices_with_opcode (int *opcode)
-{
- gint op_code, event, error;
- gboolean retval;
-
- retval = XQueryExtension (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
- "XInputExtension",
- &op_code,
- &event,
- &error);
- if (opcode)
- *opcode = op_code;
-
- return retval;
-}
-
gboolean
supports_xtest (void)
{
@@ -129,31 +112,6 @@ supports_xtest (void)
return retval;
}
-gboolean
-supports_xinput2_devices (int *opcode)
-{
- int major, minor;
-
- if (supports_xinput_devices_with_opcode (opcode) == FALSE)
- return FALSE;
-
- gdk_error_trap_push ();
-
- major = 2;
- minor = 3;
-
- if (XIQueryVersion (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), &major, &minor) != Success) {
- gdk_error_trap_pop_ignored ();
- return FALSE;
- }
- gdk_error_trap_pop_ignored ();
-
- if ((major * 1000 + minor) < (2000))
- return FALSE;
-
- return TRUE;
-}
-
static gboolean
device_type_is_present (GsdDeviceType type)
{
diff --git a/plugins/common/gsd-input-helper.h b/plugins/common/gsd-input-helper.h
index c13726b2..383b459b 100644
--- a/plugins/common/gsd-input-helper.h
+++ b/plugins/common/gsd-input-helper.h
@@ -44,7 +44,6 @@ typedef struct {
} data;
} PropertyHelper;
-gboolean supports_xinput2_devices (int *opcode);
gboolean supports_xtest (void);
gboolean touchpad_is_present (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]