[gnome-settings-daemon/wip/hadess/old-xlibs-removal: 29/31] common: Remove unused XTest helper



commit b1eef1340a9b176d09b648dc3f7c8138c51ebb0f
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Oct 25 13:28:26 2018 +0200

    common: Remove unused XTest helper

 plugins/common/gsd-input-helper.c | 15 ---------------
 plugins/common/gsd-input-helper.h |  2 --
 2 files changed, 17 deletions(-)
---
diff --git a/plugins/common/gsd-input-helper.c b/plugins/common/gsd-input-helper.c
index 186dee02..80b70df5 100644
--- a/plugins/common/gsd-input-helper.c
+++ b/plugins/common/gsd-input-helper.c
@@ -30,21 +30,6 @@
 
 #include "gsd-input-helper.h"
 
-gboolean
-supports_xtest (void)
-{
-        gint op_code, event, error;
-        gboolean retval;
-
-        retval = XQueryExtension (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
-                                 "XTEST",
-                                 &op_code,
-                                 &event,
-                                 &error);
-
-       return retval;
-}
-
 char *
 xdevice_get_device_node (int deviceid)
 {
diff --git a/plugins/common/gsd-input-helper.h b/plugins/common/gsd-input-helper.h
index b99fae4e..ae0d3abf 100644
--- a/plugins/common/gsd-input-helper.h
+++ b/plugins/common/gsd-input-helper.h
@@ -26,8 +26,6 @@ G_BEGIN_DECLS
 #include <X11/extensions/XInput.h>
 #include <X11/extensions/XIproto.h>
 
-gboolean  supports_xtest           (void);
-
 char *    xdevice_get_device_node  (int                     deviceid);
 
 G_END_DECLS


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]