aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/users-service-dbus.c35
1 files changed, 4 insertions, 31 deletions
diff --git a/src/users-service-dbus.c b/src/users-service-dbus.c
index 5a9b874..499182b 100644
--- a/src/users-service-dbus.c
+++ b/src/users-service-dbus.c
@@ -34,11 +34,10 @@
#include "users-service-client.h"
#include "users-service-marshal.h"
-static void users_service_dbus_class_init (UsersServiceDbusClass *klass);
-static void users_service_dbus_init (UsersServiceDbus *self);
-static void users_service_dbus_dispose (GObject *object);
-static void users_service_dbus_finalize (GObject *object);
-static void create_system_proxy (UsersServiceDbus *self);
+static void users_service_dbus_class_init (UsersServiceDbusClass *klass);
+static void users_service_dbus_init (UsersServiceDbus *self);
+static void users_service_dbus_dispose (GObject *object);
+static void users_service_dbus_finalize (GObject *object);
static void create_gdm_proxy (UsersServiceDbus *self);
static void create_seat_proxy (UsersServiceDbus *self);
static void create_ck_proxy (UsersServiceDbus *self);
@@ -78,7 +77,6 @@ struct _UsersServiceDbusPrivate
DBusGConnection *system_bus;
- DBusGProxy *dbus_proxy_system;
DBusGProxy *gdm_proxy;
DBusGProxy *ck_proxy;
DBusGProxy *seat_proxy;
@@ -181,7 +179,6 @@ users_service_dbus_init (UsersServiceDbus *self)
G_TYPE_INT64,
G_TYPE_INVALID);
- create_system_proxy (self);
create_gdm_proxy (self);
create_ck_proxy (self);
create_seat_proxy (self);
@@ -202,30 +199,6 @@ users_service_dbus_finalize (GObject *object)
}
static void
-create_system_proxy (UsersServiceDbus *self)
-{
- UsersServiceDbusPrivate *priv = USERS_SERVICE_DBUS_GET_PRIVATE (self);
- GError *error = NULL;
-
- priv->dbus_proxy_system = dbus_g_proxy_new_for_name_owner (priv->system_bus,
- DBUS_SERVICE_DBUS,
- DBUS_PATH_DBUS,
- DBUS_INTERFACE_DBUS,
- &error);
-
- if (!priv->dbus_proxy_system)
- {
- if (error != NULL)
- {
- g_error ("Unable to get dbus proxy on system bus: %s", error->message);
- g_error_free (error);
-
- return;
- }
- }
-}
-
-static void
create_gdm_proxy (UsersServiceDbus *self)
{
UsersServiceDbusPrivate *priv = USERS_SERVICE_DBUS_GET_PRIVATE (self);