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
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';

View File

@ -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;

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

View File

@ -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);