summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-23 09:46:05 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-23 09:53:55 +0200
commitc1c252ddb2316cd2e82e3599d1a067c68ea9d099 (patch)
treefa503862181059788aade55bc40a874c7dad85f8 /Userland/Libraries/LibGUI
parent2eceabdcfd0ad20ace98d723ec3fcaac801ade32 (diff)
downloadserenity-c1c252ddb2316cd2e82e3599d1a067c68ea9d099.zip
LibIPC: Remove unnecessary IPC::ServerConnection::handshake()
This is no longer used by any of our IPC pairs.
Diffstat (limited to 'Userland/Libraries/LibGUI')
-rw-r--r--Userland/Libraries/LibGUI/Clipboard.cpp5
-rw-r--r--Userland/Libraries/LibGUI/Notification.cpp4
-rw-r--r--Userland/Libraries/LibGUI/WindowManagerServerConnection.cpp5
-rw-r--r--Userland/Libraries/LibGUI/WindowManagerServerConnection.h2
-rw-r--r--Userland/Libraries/LibGUI/WindowServerConnection.cpp2
-rw-r--r--Userland/Libraries/LibGUI/WindowServerConnection.h1
6 files changed, 1 insertions, 18 deletions
diff --git a/Userland/Libraries/LibGUI/Clipboard.cpp b/Userland/Libraries/LibGUI/Clipboard.cpp
index 834e836bc8..5b44a1cd33 100644
--- a/Userland/Libraries/LibGUI/Clipboard.cpp
+++ b/Userland/Libraries/LibGUI/Clipboard.cpp
@@ -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")
diff --git a/Userland/Libraries/LibGUI/Notification.cpp b/Userland/Libraries/LibGUI/Notification.cpp
index ac92619eca..445237768f 100644
--- a/Userland/Libraries/LibGUI/Notification.cpp
+++ b/Userland/Libraries/LibGUI/Notification.cpp
@@ -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();
diff --git a/Userland/Libraries/LibGUI/WindowManagerServerConnection.cpp b/Userland/Libraries/LibGUI/WindowManagerServerConnection.cpp
index b722f94048..681e52489e 100644
--- a/Userland/Libraries/LibGUI/WindowManagerServerConnection.cpp
+++ b/Userland/Libraries/LibGUI/WindowManagerServerConnection.cpp
@@ -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)
diff --git a/Userland/Libraries/LibGUI/WindowManagerServerConnection.h b/Userland/Libraries/LibGUI/WindowManagerServerConnection.h
index 6cba68bf2c..8efd922503 100644
--- a/Userland/Libraries/LibGUI/WindowManagerServerConnection.h
+++ b/Userland/Libraries/LibGUI/WindowManagerServerConnection.h
@@ -20,10 +20,8 @@ public:
WindowManagerServerConnection()
: IPC::ServerConnection<WindowManagerClientEndpoint, WindowManagerServerEndpoint>(*this, "/tmp/portal/wm")
{
- handshake();
}
- virtual void handshake() override;
static WindowManagerServerConnection& the();
private:
diff --git a/Userland/Libraries/LibGUI/WindowServerConnection.cpp b/Userland/Libraries/LibGUI/WindowServerConnection.cpp
index b61ffaca8c..b819b3e97c 100644
--- a/Userland/Libraries/LibGUI/WindowServerConnection.cpp
+++ b/Userland/Libraries/LibGUI/WindowServerConnection.cpp
@@ -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)
diff --git a/Userland/Libraries/LibGUI/WindowServerConnection.h b/Userland/Libraries/LibGUI/WindowServerConnection.h
index 7faba6c266..d5aef15cc6 100644
--- a/Userland/Libraries/LibGUI/WindowServerConnection.h
+++ b/Userland/Libraries/LibGUI/WindowServerConnection.h
@@ -17,7 +17,6 @@ class WindowServerConnection
, public WindowClientEndpoint {
C_OBJECT(WindowServerConnection)
public:
- virtual void handshake() override { }
static WindowServerConnection& the();
private: