From 9a2b2633095fb901fc1931ab0c600392d68bb3b4 Mon Sep 17 00:00:00 2001 From: Eric Koegel Date: Mon, 14 Jul 2014 08:16:06 +0300 Subject: Remove polkit dependency With the removal of the suspend/hibernate code, there's no longer a need for upower to depend on polkit. This patch removes the old polkit code. Signed-off-by: Richard Hughes --- src/up-daemon.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/up-daemon.c') diff --git a/src/up-daemon.c b/src/up-daemon.c index c7fea62..d53facc 100644 --- a/src/up-daemon.c +++ b/src/up-daemon.c @@ -33,7 +33,6 @@ #include #include "up-config.h" -#include "up-polkit.h" #include "up-device-list.h" #include "up-device.h" #include "up-backend.h" @@ -66,7 +65,6 @@ struct UpDaemonPrivate DBusGConnection *connection; DBusGProxy *proxy; UpConfig *config; - UpPolkit *polkit; UpBackend *backend; UpDeviceList *power_devices; guint action_timeout_id; @@ -1103,7 +1101,6 @@ static void up_daemon_init (UpDaemon *daemon) { daemon->priv = UP_DAEMON_GET_PRIVATE (daemon); - daemon->priv->polkit = up_polkit_new (); daemon->priv->config = up_config_new (); daemon->priv->power_devices = up_device_list_new (); daemon->priv->display_device = up_device_new (); @@ -1272,7 +1269,6 @@ up_daemon_finalize (GObject *object) if (priv->connection != NULL) dbus_g_connection_unref (priv->connection); g_object_unref (priv->power_devices); - g_object_unref (priv->polkit); g_object_unref (priv->config); g_object_unref (priv->backend); -- cgit v1.2.1