Remove unused parseMessage function (#4968)

This commit is contained in:
Mm2PL 2023-11-17 14:46:35 +01:00 committed by GitHub
parent 5693927f42
commit d9cdc88061
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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