[gnome-settings-daemon/wip/carlosg/remove-device-mapper: 78/84] common: Drop *_is_present() device testing API



commit 5fac7aed59ffee22f727e48cbe20737a75bc6122
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Apr 20 19:52:35 2018 +0200

    common: Drop *_is_present() device testing API
    
    It is now entirely unused.

 plugins/common/gsd-input-helper.c | 28 ----------------------------
 plugins/common/gsd-input-helper.h |  4 ----
 2 files changed, 32 deletions(-)
---
diff --git a/plugins/common/gsd-input-helper.c b/plugins/common/gsd-input-helper.c
index 41005999..58e136a0 100644
--- a/plugins/common/gsd-input-helper.c
+++ b/plugins/common/gsd-input-helper.c
@@ -29,7 +29,6 @@
 #include <X11/extensions/XInput2.h>
 
 #include "gsd-input-helper.h"
-#include "gsd-device-manager.h"
 
 #define ABS_MT_X "Abs MT Position X"
 #define ABS_MT_Y "Abs MT Position Y"
@@ -154,33 +153,6 @@ supports_xinput2_devices (int *opcode)
         return TRUE;
 }
 
-static gboolean
-device_type_is_present (GsdDeviceType type)
-{
-        GList *l = gsd_device_manager_list_devices (gsd_device_manager_get (),
-                                                    type);
-        g_list_free (l);
-        return l != NULL;
-}
-
-gboolean
-touchscreen_is_present (void)
-{
-        return device_type_is_present (GSD_DEVICE_TYPE_TOUCHSCREEN);
-}
-
-gboolean
-touchpad_is_present (void)
-{
-        return device_type_is_present (GSD_DEVICE_TYPE_TOUCHPAD);
-}
-
-gboolean
-mouse_is_present (void)
-{
-        return device_type_is_present (GSD_DEVICE_TYPE_MOUSE);
-}
-
 char *
 xdevice_get_device_node (int deviceid)
 {
diff --git a/plugins/common/gsd-input-helper.h b/plugins/common/gsd-input-helper.h
index 31e2e47a..25a96289 100644
--- a/plugins/common/gsd-input-helper.h
+++ b/plugins/common/gsd-input-helper.h
@@ -50,10 +50,6 @@ gboolean  supports_xtest           (void);
 gboolean set_device_enabled       (int device_id,
                                    gboolean enabled);
 
-gboolean  touchpad_is_present     (void);
-gboolean  touchscreen_is_present  (void);
-gboolean  mouse_is_present        (void);
-
 gboolean  device_set_property     (XDevice                *xdevice,
                                    const char             *device_name,
                                    PropertyHelper         *property);


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