[gnome-settings-daemon] common: Remove tests for removed functions



commit 013808e23d719ab6142aee062dbf46d66228c685
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Jun 7 01:34:12 2011 +0100

    common: Remove tests for removed functions
    
    accelerometer_is_present() is gone.

 plugins/common/test-input-helper.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/plugins/common/test-input-helper.c b/plugins/common/test-input-helper.c
index 28b40d6..500c624 100644
--- a/plugins/common/test-input-helper.c
+++ b/plugins/common/test-input-helper.c
@@ -34,8 +34,6 @@ int main (int argc, char **argv)
 	gboolean supports_xinput;
 	gboolean has_touchpad, has_touchscreen;
         XDeviceInfo *device_info;
-        char *dev_node;
-        int devid;
         gint n_devices;
         guint i;
 
@@ -62,13 +60,6 @@ int main (int argc, char **argv)
 	has_touchscreen = touchscreen_is_present ();
 	g_print ("Has touchscreen:\t\t\t%s\n", has_touchscreen ? "yes" : "no");
 
-	if (accelerometer_is_present (&dev_node, &devid)) {
-		g_print ("Has accelerometer:\t\t\t%s (%d)\n", dev_node, devid);
-		g_free (dev_node);
-	} else {
-		g_print ("Has accelerometer:\t\t\t%s\n", "no");
-	}
-
         device_info = XListInputDevices (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), &n_devices);
         if (device_info == NULL) {
 		g_warning ("Has no input devices");



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