summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorAlessandro Bono <alessandro.bono369@gmail.com>2023-02-10 17:11:41 +0100
committerRay Strode <halfline@gmail.com>2023-04-28 19:41:28 +0000
commitf0252728e9ef2a23b0d98a4fe2c697fdc673d254 (patch)
tree31c33d6b05ea1fd9c3ec4d365b8e1e04377ad052 /daemon
parent7336e760624ec6651aefff80d1beb70db65183fc (diff)
downloadgdm-f0252728e9ef2a23b0d98a4fe2c697fdc673d254.tar.gz
gdm-session-settings: Remove unused variable
Diffstat (limited to 'daemon')
-rw-r--r--daemon/gdm-session-settings.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/daemon/gdm-session-settings.c b/daemon/gdm-session-settings.c
index c4167c11..8a09381c 100644
--- a/daemon/gdm-session-settings.c
+++ b/daemon/gdm-session-settings.c
@@ -338,27 +338,19 @@ gboolean
gdm_session_settings_load (GdmSessionSettings *settings,
const char *username)
{
- ActUser *old_user;
-
g_return_val_if_fail (GDM_IS_SESSION_SETTINGS (settings), FALSE);
g_return_val_if_fail (username != NULL, FALSE);
g_return_val_if_fail (!gdm_session_settings_is_loaded (settings), FALSE);
if (settings->user != NULL) {
- old_user = settings->user;
-
g_signal_handlers_disconnect_by_func (G_OBJECT (settings->user),
G_CALLBACK (on_user_is_loaded_changed),
settings);
- } else {
- old_user = NULL;
}
settings->user = act_user_manager_get_user (settings->user_manager,
username);
- g_clear_object (&old_user);
-
if (!act_user_is_loaded (settings->user)) {
g_signal_connect (settings->user,
"notify::is-loaded",