Blob Blame History Raw
From 7eae5842599eca46e14d57641f6629c60fe7a354 Mon Sep 17 00:00:00 2001
From: Ray Strode <rstrode@redhat.com>
Date: Fri, 31 Mar 2017 14:56:46 -0400
Subject: [PATCH 04/13] manager: drop some erroneous code

This is commit 82296a3350b64d0ed5ae3b9f6983466c60dd8a53 all over
again.  The code snuck back in during a refactor !
---
 daemon/gdm-manager.c | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c
index e78228b4..3014dad3 100644
--- a/daemon/gdm-manager.c
+++ b/daemon/gdm-manager.c
@@ -1903,79 +1903,61 @@ on_session_client_connected (GdmSession      *session,
         }
 #endif
 
         g_object_get (G_OBJECT (display), "allow-timed-login", &allow_timed_login, NULL);
 
         if (!allow_timed_login) {
                 return;
         }
 
         enabled = get_timed_login_details (manager, &username, &delay);
 
         if (! enabled) {
                 return;
         }
 
         gdm_session_set_timed_login_details (session, username, delay);
 
         g_debug ("GdmManager: Starting automatic login conversation (for timed login)");
         gdm_session_start_conversation (session, "gdm-autologin");
 
         g_free (username);
 
 }
 
 static void
 on_session_client_disconnected (GdmSession   *session,
                                 GCredentials *credentials,
                                 GPid          pid_of_client,
                                 GdmManager   *manager)
 {
-        GdmDisplay *display;
-        gboolean display_is_local;
-
         g_debug ("GdmManager: client disconnected");
-
-        display = get_display_for_user_session (session);
-
-        if (display == NULL) {
-                return;
-        }
-
-        g_object_get (G_OBJECT (display),
-                      "is-local", &display_is_local,
-                      NULL);
-
-        if ( ! display_is_local && gdm_session_is_running (session)) {
-                gdm_display_unmanage (display);
-                gdm_display_finish (display);
-        }
 }
 
 typedef struct
 {
         GdmManager *manager;
         GdmSession *session;
         guint idle_id;
 } ResetSessionOperation;
 
 static void
 destroy_reset_session_operation (ResetSessionOperation *operation)
 {
         g_object_set_data (G_OBJECT (operation->session),
                            "reset-session-operation",
                            NULL);
         g_object_unref (operation->session);
         g_slice_free (ResetSessionOperation, operation);
 }
 
 static gboolean
 on_reset_session (ResetSessionOperation *operation)
 {
         gdm_session_reset (operation->session);
 
         destroy_reset_session_operation (operation);
 
         return G_SOURCE_REMOVE;
 }
 
 static void
-- 
2.12.0