From 1ba239a617ac4657cce89e08522400c9320e2eb2 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Mon, 2 Mar 2015 14:36:53 -0500 Subject: display: drop set_up_greeter_session function The function is ill named and ill placed. It really just returns the username of the client that's allowed to connect to the display. This commit moves the function to gdm-manager.c --- daemon/gdm-display.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'daemon/gdm-display.c') diff --git a/daemon/gdm-display.c b/daemon/gdm-display.c index 36c15c5c..171938be 100644 --- a/daemon/gdm-display.c +++ b/daemon/gdm-display.c @@ -1533,19 +1533,6 @@ wants_initial_setup (GdmDisplay *self) return enabled; } -void -gdm_display_set_up_greeter_session (GdmDisplay *self, - char **username) -{ - g_return_if_fail (g_strcmp0 (self->priv->session_class, "greeter") == 0); - - if (self->priv->doing_initial_setup) { - *username = g_strdup (INITIAL_SETUP_USERNAME); - } else { - *username = g_strdup (GDM_USERNAME); - } -} - void gdm_display_start_greeter_session (GdmDisplay *self) { -- cgit v1.2.1