summaryrefslogtreecommitdiff
path: root/src/up-device.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-10-14 22:27:35 +0200
committerBastien Nocera <hadess@hadess.net>2013-10-15 15:01:37 +0200
commitdab98e291ab635b6957a72f16a6d72513b9bc6b3 (patch)
tree62115ed4c4e36e6e6edbdd726c0c4a3c77d6633e /src/up-device.c
parentf71ac98cd22867f220808eae35e40b37ef3f9716 (diff)
downloadupower-dab98e291ab635b6957a72f16a6d72513b9bc6b3.tar.gz
daemon: Remove unused internal D-Bus proxy
In UpDevice.
Diffstat (limited to 'src/up-device.c')
-rw-r--r--src/up-device.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/up-device.c b/src/up-device.c
index 2729b03..57365d3 100644
--- a/src/up-device.c
+++ b/src/up-device.c
@@ -44,7 +44,6 @@ struct UpDevicePrivate
{
gchar *object_path;
DBusGConnection *system_bus_connection;
- DBusGProxy *system_bus_proxy;
UpDaemon *daemon;
UpHistory *history;
GObject *native;
@@ -891,19 +890,11 @@ up_device_compute_object_path (UpDevice *device)
static gboolean
up_device_register_device (UpDevice *device)
{
- gboolean ret = TRUE;
-
device->priv->object_path = up_device_compute_object_path (device);
g_debug ("object path = %s", device->priv->object_path);
dbus_g_connection_register_g_object (device->priv->system_bus_connection,
device->priv->object_path, G_OBJECT (device));
- device->priv->system_bus_proxy = dbus_g_proxy_new_for_name (device->priv->system_bus_connection,
- DBUS_SERVICE_DBUS, DBUS_PATH_DBUS, DBUS_INTERFACE_DBUS);
- if (device->priv->system_bus_proxy == NULL) {
- g_warning ("proxy invalid");
- ret = FALSE;
- }
- return ret;
+ return TRUE;
}
/**