summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonsta <[email protected]>2015-12-13 22:23:28 +0300
committerMonsta <[email protected]>2015-12-13 22:23:28 +0300
commit4d0c3f3ba8b99fd640170810cde47bb981e2fc91 (patch)
treea56de0db3053249520ad3638692346fd4861a521
parent5014a4ddbdf8349fe8206cf3df3ac6a97361b469 (diff)
downloadmate-session-manager-4d0c3f3ba8b99fd640170810cde47bb981e2fc91.tar.bz2
mate-session-manager-4d0c3f3ba8b99fd640170810cde47bb981e2fc91.tar.xz
remove some dead code
-rw-r--r--tools/mate-session-save.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/tools/mate-session-save.c b/tools/mate-session-save.c
index cec2a6b..1e958eb 100644
--- a/tools/mate-session-save.c
+++ b/tools/mate-session-save.c
@@ -155,43 +155,6 @@ static DBusGProxy* get_sm_proxy(void)
return sm_proxy;
}
-#if 0
-static void set_session_name(const char* session_name)
-{
- DBusGProxy* sm_proxy;
- GError* error;
- gboolean res;
-
- sm_proxy = get_sm_proxy();
-
- if (sm_proxy == NULL)
- {
- return;
- }
-
- error = NULL;
- res = dbus_g_proxy_call(sm_proxy, "SetName", &error, G_TYPE_STRING, session_name, G_TYPE_INVALID, G_TYPE_INVALID);
-
- if (!res)
- {
- if (error != NULL)
- {
- g_warning("Failed to set session name '%s': %s", session_name, error->message);
- g_error_free(error);
- }
- else
- {
- g_warning("Failed to set session name '%s'", session_name);
- }
- }
-
- if (sm_proxy != NULL)
- {
- g_object_unref(sm_proxy);
- }
-}
-#endif
-
static void do_logout(unsigned int mode)
{
DBusGProxy* sm_proxy;