[gnome-settings-daemon/wip/hadess/old-xlibs-removal: 34/35] power: Remove disabled_devices



commit 16a060a4bd8e52aa66c3f97558d9f00986706d31
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Oct 25 13:17:13 2018 +0200

    power: Remove disabled_devices
    
    Which was forgotten in 104c5e603efe52b51dd1d392a2d6fb32142770bc

 plugins/power/gsd-power-manager.c | 4 ----
 1 file changed, 4 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index 994f4d9c..f965f6f3 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -141,7 +141,6 @@ struct GsdPowerManagerPrivate
         /* Screensaver */
         GsdScreenSaver          *screensaver_proxy;
         gboolean                 screensaver_active;
-        GHashTable              *disabled_devices;
 
         /* State */
         gboolean                 lid_is_present;
@@ -1888,8 +1887,6 @@ gsd_power_manager_finalize (GObject *object)
 
         gsd_power_manager_stop (manager);
 
-        g_clear_pointer (&manager->priv->disabled_devices, g_hash_table_unref);
-
         g_clear_object (&manager->priv->connection);
 
         if (manager->priv->name_id != 0)
@@ -2722,7 +2719,6 @@ gsd_power_manager_init (GsdPowerManager *manager)
         manager->priv->inhibit_lid_switch_fd = -1;
         manager->priv->inhibit_suspend_fd = -1;
         manager->priv->cancellable = g_cancellable_new ();
-        manager->priv->disabled_devices = g_hash_table_new (g_direct_hash, g_direct_equal);
 }
 
 /* returns new level */


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