From 3861fa718d92ee762b3deac68a81caf91a597054 Mon Sep 17 00:00:00 2001 From: Jaidyn Ann Date: Thu, 5 Aug 2021 21:05:59 -0500 Subject: [PATCH] Remove unused APP_*_CHAT_WINDOW messages --- application/AppMessages.h | 6 ------ application/Server.cpp | 10 ---------- application/views/ConversationView.cpp | 12 ------------ application/views/ConversationView.h | 1 - 4 files changed, 29 deletions(-) diff --git a/application/AppMessages.h b/application/AppMessages.h index fbe0d48..47ff093 100644 --- a/application/AppMessages.h +++ b/application/AppMessages.h @@ -8,12 +8,6 @@ //! Show settings window const uint32 APP_SHOW_SETTINGS = 'RPST'; -//! Open chat window -const uint32 APP_OPEN_CHAT_WINDOW = 'CYow'; - -//! Close chat window -const uint32 APP_CLOSE_CHAT_WINDOW = 'CYcw'; - //! Chat messages const uint32 APP_CHAT = 'CYch'; diff --git a/application/Server.cpp b/application/Server.cpp index c9e7192..becfd96 100644 --- a/application/Server.cpp +++ b/application/Server.cpp @@ -133,16 +133,6 @@ Server::Filter(BMessage* message, BHandler **target) case IM_ERROR: ImError(message); break; - case APP_CLOSE_CHAT_WINDOW: - { - BString id = message->FindString("chat_id"); - if (id.Length() > 0) { - bool found = false; -// Conversation* item = fChatMap.ValueFor(id, &found); - } - result = B_SKIP_MESSAGE; - break; - } case APP_ACCOUNT_DISABLED: { BString name; diff --git a/application/views/ConversationView.cpp b/application/views/ConversationView.cpp index cda259f..6f225a2 100644 --- a/application/views/ConversationView.cpp +++ b/application/views/ConversationView.cpp @@ -54,18 +54,6 @@ ConversationView::ConversationView(Conversation* chat) } -bool -ConversationView::QuitRequested() -{ - BMessage msg(APP_CLOSE_CHAT_WINDOW); - if (fConversation != NULL) { - msg.AddString("chat_id", fConversation->GetId()); - fConversation->Messenger().SendMessage(&msg); - } - return false; -} - - void ConversationView::AttachedToWindow() { diff --git a/application/views/ConversationView.h b/application/views/ConversationView.h index f463ead..6c490f5 100644 --- a/application/views/ConversationView.h +++ b/application/views/ConversationView.h @@ -28,7 +28,6 @@ class ConversationView : public BGroupView, public Observer, public Notifier { public: ConversationView(Conversation* chat = NULL); - virtual bool QuitRequested(); virtual void AttachedToWindow(); virtual void MessageReceived(BMessage* message);