loginManager: Remove sessionActive property

It is unused after switching to GnomeSession:SessionIsActive, so
remove it together with shell_session_is_active_for_systemd().

https://bugzilla.gnome.org/show_bug.cgi?id=693161
This commit is contained in:
Florian Müllner
2013-02-03 22:25:02 +01:00
parent 526a16298c
commit e0c5a61be5
5 changed files with 0 additions and 82 deletions

View File

@ -14,11 +14,6 @@
#include <langinfo.h>
#endif
#ifdef WITH_SYSTEMD
#include <systemd/sd-daemon.h>
#include <systemd/sd-login.h>
#endif
static void
stop_pick (ClutterActor *actor,
const ClutterColor *color)
@ -355,29 +350,6 @@ shell_get_file_contents_utf8_sync (const char *path,
return contents;
}
/**
* shell_session_is_active_for_systemd:
*
* Checks whether the session we are running in is currently active,
* i.e. in the foreground and ready for user input.
*
* Returns: TRUE if session is active
*/
gboolean
shell_session_is_active_for_systemd (void)
{
/* If this isn't systemd, let's assume the session is active. */
#ifdef WITH_SYSTEMD
if (sd_booted () <= 0)
return TRUE;
return sd_session_is_active (NULL) != 0;
#else
return TRUE;
#endif
}
/**
* shell_util_wifexited:
* @status: the status returned by wait() or waitpid()