LibCore: Remove SessionManagement utilities

We don't need these, they are only relevant for SerenityOS system
builds of LibCore.
This commit is contained in:
Andrew Kaster 2024-11-21 13:18:35 -07:00 committed by Andreas Kling
commit 0075048206
Notes: github-actions[bot] 2024-11-26 10:01:50 +00:00
10 changed files with 1 additions and 96 deletions

View file

@ -18,7 +18,6 @@
#include <stdlib.h>
#if !defined(AK_OS_WINDOWS)
# include <LibCore/SessionManagement.h>
# include <pwd.h>
# include <unistd.h>
#endif
@ -202,10 +201,7 @@ ErrorOr<ByteString> StandardPaths::runtime_directory()
StringBuilder builder;
#if defined(AK_OS_SERENITY)
auto sid = TRY(Core::SessionManagement::root_session_id());
builder.appendff("/tmp/session/{}", sid);
#elif defined(AK_OS_MACOS)
#if defined(AK_OS_MACOS)
builder.append(home_directory());
builder.append("/Library/Application Support"sv);
#elif defined(AK_OS_HAIKU)