Remove unused APP_*_CHAT_WINDOW messages

This commit is contained in:
Jaidyn Ann 2021-08-05 21:05:59 -05:00
parent e8e1ce0b05
commit 3861fa718d
4 changed files with 0 additions and 29 deletions

View File

@ -8,12 +8,6 @@
//! Show settings window //! Show settings window
const uint32 APP_SHOW_SETTINGS = 'RPST'; 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 //! Chat messages
const uint32 APP_CHAT = 'CYch'; const uint32 APP_CHAT = 'CYch';

View File

@ -133,16 +133,6 @@ Server::Filter(BMessage* message, BHandler **target)
case IM_ERROR: case IM_ERROR:
ImError(message); ImError(message);
break; 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: case APP_ACCOUNT_DISABLED:
{ {
BString name; BString name;

View File

@ -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 void
ConversationView::AttachedToWindow() ConversationView::AttachedToWindow()
{ {

View File

@ -28,7 +28,6 @@ class ConversationView : public BGroupView, public Observer, public Notifier {
public: public:
ConversationView(Conversation* chat = NULL); ConversationView(Conversation* chat = NULL);
virtual bool QuitRequested();
virtual void AttachedToWindow(); virtual void AttachedToWindow();
virtual void MessageReceived(BMessage* message); virtual void MessageReceived(BMessage* message);