[gnome-settings-daemon] power: Remove unused error checking



commit 216b8e08c15773670c6aa47b6b7e2467b0d997da
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Oct 17 10:42:32 2013 +0200

    power: Remove unused error checking

 plugins/power/gsd-power-manager.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index f7afc4a..93961f5 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -307,10 +307,7 @@ engine_device_added_cb (UpClient *client, UpDevice *device, GsdPowerManager *man
 static void
 engine_device_removed_cb (UpClient *client, UpDevice *device, GsdPowerManager *manager)
 {
-        gboolean ret;
-        ret = g_ptr_array_remove (manager->priv->devices_array, device);
-        if (!ret)
-                return;
+        g_ptr_array_remove (manager->priv->devices_array, device);
 }
 
 static void


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