summaryrefslogtreecommitdiff
path: root/src/up-daemon.c
diff options
context:
space:
mode:
authorEric Koegel <eric.koegel@gmail.com>2014-07-14 08:16:06 +0300
committerRichard Hughes <richard@hughsie.com>2014-07-14 19:34:46 +0100
commit9a2b2633095fb901fc1931ab0c600392d68bb3b4 (patch)
treebb4c1ff39c34b1547fe0d000dbb2c27e3bb8af26 /src/up-daemon.c
parentd1bb06985fb30a9dfd4c2eb423ac19540445b9e4 (diff)
downloadupower-9a2b2633095fb901fc1931ab0c600392d68bb3b4.tar.gz
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 <richard@hughsie.com>
Diffstat (limited to 'src/up-daemon.c')
-rw-r--r--src/up-daemon.c4
1 files changed, 0 insertions, 4 deletions
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 <dbus/dbus-glib-lowlevel.h>
#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);