1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:27:43 +00:00

LibIPC: Remove unnecessary IPC::ServerConnection::handshake()

This is no longer used by any of our IPC pairs.
This commit is contained in:
Andreas Kling 2021-05-23 09:46:05 +02:00
parent 2eceabdcfd
commit c1c252ddb2
25 changed files with 1 additions and 71 deletions

View file

@ -16,11 +16,6 @@ class ClipboardServerConnection : public IPC::ServerConnection<ClipboardClientEn
, public ClipboardClientEndpoint {
C_OBJECT(ClipboardServerConnection);
public:
virtual void handshake() override
{
}
private:
ClipboardServerConnection()
: IPC::ServerConnection<ClipboardClientEndpoint, ClipboardServerEndpoint>(*this, "/tmp/portal/clipboard")

View file

@ -18,10 +18,6 @@ class NotificationServerConnection : public IPC::ServerConnection<NotificationCl
friend class Notification;
public:
virtual void handshake() override
{
}
virtual void die() override
{
m_notification->connection_closed();

View file

@ -19,11 +19,6 @@ WindowManagerServerConnection& WindowManagerServerConnection::the()
return *s_connection;
}
void WindowManagerServerConnection::handshake()
{
// :^)
}
void WindowManagerServerConnection::window_state_changed(i32 wm_id, i32 client_id, i32 window_id,
i32 parent_client_id, i32 parent_window_id, bool is_active, bool is_minimized, bool is_modal,
bool is_frameless, i32 window_type, String const& title, Gfx::IntRect const& rect, Optional<i32> const& progress)

View file

@ -20,10 +20,8 @@ public:
WindowManagerServerConnection()
: IPC::ServerConnection<WindowManagerClientEndpoint, WindowManagerServerEndpoint>(*this, "/tmp/portal/wm")
{
handshake();
}
virtual void handshake() override;
static WindowManagerServerConnection& the();
private:

View file

@ -55,7 +55,7 @@ WindowServerConnection::WindowServerConnection()
void WindowServerConnection::fast_greet(Gfx::IntRect const&, Core::AnonymousBuffer const&, String const&, String const&)
{
// NOTE: This message is handled in handshake().
// NOTE: This message is handled in the constructor.
}
void WindowServerConnection::update_system_theme(Core::AnonymousBuffer const& theme_buffer)

View file

@ -17,7 +17,6 @@ class WindowServerConnection
, public WindowClientEndpoint {
C_OBJECT(WindowServerConnection)
public:
virtual void handshake() override { }
static WindowServerConnection& the();
private: