[gnome-settings-daemon] mouse: Remove unused supports_xinput_devices() call



commit 3a244a490df4453c41469d8eeb789d96412f80b1
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Mar 21 11:01:59 2011 +0000

    mouse: Remove unused supports_xinput_devices() call
    
    We already exit out when there's no XInput support.

 plugins/mouse/gsd-mouse-manager.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/plugins/mouse/gsd-mouse-manager.c b/plugins/mouse/gsd-mouse-manager.c
index 4e8893c..5f4b804 100644
--- a/plugins/mouse/gsd-mouse-manager.c
+++ b/plugins/mouse/gsd-mouse-manager.c
@@ -266,7 +266,6 @@ touchpad_has_single_button (XDevice *device)
         return is_single_button;
 }
 
-
 static void
 set_left_handed (GsdMouseManager *manager,
                  gboolean mouse_left_handed,
@@ -470,9 +469,6 @@ set_motion (GsdMouseManager *manager)
         gint n_devices;
         guint i;
 
-        if (supports_xinput_devices () == FALSE)
-                return;
-
         device_info = XListInputDevices (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), &n_devices);
         if (device_info == NULL)
                 return;
@@ -481,7 +477,6 @@ set_motion (GsdMouseManager *manager)
                 set_motion_for_device (manager, device_info[i]);
 
         XFreeDeviceList (device_info);
-
 }
 
 static void



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