From de7df6f24aee51fe89bab096f784e22578a83cbb Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Thu, 25 Feb 2021 12:41:36 -0500 Subject: daemon,common,libgdm: Drop use of sd_seat_can_multi_session It's deprecated now, and always returns TRUE. --- common/gdm-common.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'common') diff --git a/common/gdm-common.c b/common/gdm-common.c index 2e9114f2..bf8364a8 100644 --- a/common/gdm-common.c +++ b/common/gdm-common.c @@ -512,24 +512,6 @@ goto_login_session (GDBusConnection *connection, return FALSE; } - res = sd_seat_can_multi_session (seat_id); - if (res < 0) { - free (seat_id); - - g_debug ("failed to determine whether seat can do multi session: %s", strerror (-res)); - g_set_error (error, GDM_COMMON_ERROR, 0, _("The system is unable to determine whether to switch to an existing login screen or start up a new login screen.")); - - return FALSE; - } - - if (res == 0) { - free (seat_id); - - g_set_error (error, GDM_COMMON_ERROR, 0, _("The system is unable to start up a new login screen.")); - - return FALSE; - } - res = gdm_get_login_window_session_id (seat_id, &session_id); if (res && session_id != NULL) { res = gdm_activate_session_by_id (connection, seat_id, session_id); -- cgit v1.2.1