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
parent 1549d393b9
commit 0075048206
10 changed files with 1 additions and 96 deletions

View File

@@ -6,7 +6,6 @@
#include <LibCore/LocalServer.h>
#include <LibCore/Notifier.h>
#include <LibCore/SessionManagement.h>
#include <LibCore/Socket.h>
#include <LibCore/System.h>
#include <LibCore/SystemServerTakeover.h>
@@ -33,20 +32,6 @@ LocalServer::~LocalServer()
::close(m_fd);
}
ErrorOr<void> LocalServer::take_over_from_system_server(ByteString const& socket_path)
{
if (m_listening)
return Error::from_string_literal("Core::LocalServer: Can't perform socket takeover when already listening");
auto const parsed_path = TRY(Core::SessionManagement::parse_path_with_sid(socket_path));
auto socket = TRY(take_over_socket_from_system_server(parsed_path));
m_fd = TRY(socket->release_fd());
m_listening = true;
setup_notifier();
return {};
}
ErrorOr<void> LocalServer::take_over_fd(int socket_fd)
{
if (m_listening)