mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Remove unused parseMessage function (#4968)
This commit is contained in:
parent
5693927f42
commit
d9cdc88061
|
@ -558,39 +558,6 @@ std::vector<MessagePtr> parsePrivMessage(Channel *channel,
|
|||
return builtMessages;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parse a single IRC message into 0 or more Chatterino messages
|
||||
**/
|
||||
std::vector<MessagePtr> parseMessage(Channel *channel,
|
||||
Communi::IrcMessage *message)
|
||||
{
|
||||
assert(channel != nullptr);
|
||||
assert(message != nullptr);
|
||||
|
||||
std::vector<MessagePtr> builtMessages;
|
||||
|
||||
auto command = message->command();
|
||||
|
||||
if (command == "PRIVMSG")
|
||||
{
|
||||
return parsePrivMessage(
|
||||
channel, dynamic_cast<Communi::IrcPrivateMessage *>(message));
|
||||
}
|
||||
|
||||
if (command == "USERNOTICE")
|
||||
{
|
||||
return parseUserNoticeMessage(channel, message);
|
||||
}
|
||||
|
||||
if (command == "NOTICE")
|
||||
{
|
||||
return parseNoticeMessage(
|
||||
dynamic_cast<Communi::IrcNoticeMessage *>(message));
|
||||
}
|
||||
|
||||
return builtMessages;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
namespace chatterino {
|
||||
|
|
Loading…
Reference in a new issue