diff --git a/src/providers/twitch/IrcMessageHandler.cpp b/src/providers/twitch/IrcMessageHandler.cpp index 2be9d9621..0bfef74af 100644 --- a/src/providers/twitch/IrcMessageHandler.cpp +++ b/src/providers/twitch/IrcMessageHandler.cpp @@ -558,39 +558,6 @@ std::vector parsePrivMessage(Channel *channel, return builtMessages; } -/** - * Parse a single IRC message into 0 or more Chatterino messages - **/ -std::vector parseMessage(Channel *channel, - Communi::IrcMessage *message) -{ - assert(channel != nullptr); - assert(message != nullptr); - - std::vector builtMessages; - - auto command = message->command(); - - if (command == "PRIVMSG") - { - return parsePrivMessage( - channel, dynamic_cast(message)); - } - - if (command == "USERNOTICE") - { - return parseUserNoticeMessage(channel, message); - } - - if (command == "NOTICE") - { - return parseNoticeMessage( - dynamic_cast(message)); - } - - return builtMessages; -} - } // namespace namespace chatterino {