summaryrefslogtreecommitdiff
path: root/src/console-kit.c
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2011-09-07 15:46:37 +1000
committerRobert Ancell <robert.ancell@canonical.com>2011-09-07 15:46:37 +1000
commitdaeb35bfef323b6f40a1103e6132e0844528e3fc (patch)
tree09ff996424d01da852a86ef885ba0b72cd384669 /src/console-kit.c
parent5fe2aff9775b984fb5564ca80367911f30051618 (diff)
downloadlightdm-daeb35bfef323b6f40a1103e6132e0844528e3fc.tar.gz
Remove move duplicate code - where is this coming from??
Diffstat (limited to 'src/console-kit.c')
-rw-r--r--src/console-kit.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/console-kit.c b/src/console-kit.c
index 56eb17e8..42e2c6cc 100644
--- a/src/console-kit.c
+++ b/src/console-kit.c
@@ -140,38 +140,6 @@ ck_unlock_session (const gchar *cookie)
g_clear_error (&error);
if (!result)
return;
-
- g_variant_unref (result);
- proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM,
- G_DBUS_PROXY_FLAGS_NONE,
- NULL,
- "org.freedesktop.ConsoleKit",
- session_path,
- "org.freedesktop.ConsoleKit.Session",
- NULL, &error);
- if (error)
- g_warning ("Unable to get connection to ConsoleKit session: %s", error->message);
- g_variant_unref (result);
- g_clear_error (&error);
- if (!proxy)
- return;
-
- result = g_dbus_proxy_call_sync (proxy,
- "Unlock",
- NULL,
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- NULL,
- &error);
- g_object_unref (proxy);
-
- if (error)
- g_warning ("Error unlocking ConsoleKit session: %s", error->message);
- g_clear_error (&error);
- if (!result)
- return;
-
- g_variant_unref (result);
}
void