1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +00:00

NotificationServer: Remove unnecessary greet() message

This commit is contained in:
Andreas Kling 2021-05-23 09:21:26 +02:00
parent 5424372d50
commit 78b57fcea3
4 changed files with 0 additions and 9 deletions

View file

@ -20,7 +20,6 @@ class NotificationServerConnection : public IPC::ServerConnection<NotificationCl
public:
virtual void handshake() override
{
greet();
}
virtual void die() override

View file

@ -28,10 +28,6 @@ void ClientConnection::die()
s_connections.remove(client_id());
}
void ClientConnection::greet()
{
}
void ClientConnection::show_notification(String const& text, String const& title, Gfx::ShareableBitmap const& icon)
{
auto window = NotificationWindow::construct(client_id(), text, title, icon);

View file

@ -22,7 +22,6 @@ public:
private:
explicit ClientConnection(NonnullRefPtr<Core::LocalSocket>, int client_id);
virtual void greet() override;
virtual void show_notification(String const&, String const&, Gfx::ShareableBitmap const&) override;
virtual void close_notification() override;
virtual Messages::NotificationServer::UpdateNotificationIconResponse update_notification_icon(Gfx::ShareableBitmap const&) override;

View file

@ -1,8 +1,5 @@
endpoint NotificationServer
{
// Basic protocol
greet() => ()
show_notification([UTF8] String text, [UTF8] String title, Gfx::ShareableBitmap icon) => ()
update_notification_text([UTF8] String text, [UTF8] String title) => (bool still_showing)