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



commit eec6ca8ee2bd38dcb4618961644ea163586d9817
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 f778fda5..3cc52c19 100644
--- a/plugins/common/gsd-input-helper.c
+++ b/plugins/common/gsd-input-helper.c
@@ -97,21 +97,6 @@ device_set_property (XDevice        *xdevice,
         return TRUE;
 }
 
-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;
-}
-
 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 383b459b..d265935d 100644
--- a/plugins/common/gsd-input-helper.h
+++ b/plugins/common/gsd-input-helper.h
@@ -44,8 +44,6 @@ typedef struct {
         } data;
 } PropertyHelper;
 
-gboolean  supports_xtest           (void);
-
 gboolean  touchpad_is_present     (void);
 gboolean  touchscreen_is_present  (void);
 gboolean  mouse_is_present        (void);


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