diff --git a/src/singletons/Toasts.cpp b/src/singletons/Toasts.cpp index 96a640a1d..d6d5f03c3 100644 --- a/src/singletons/Toasts.cpp +++ b/src/singletons/Toasts.cpp @@ -33,12 +33,6 @@ std::map Toasts::reactionToString = { {ToastReactions::OpenInStreamlink, OPEN_IN_STREAMLINK}, {ToastReactions::DontOpen, DONT_OPEN}}; -std::map Toasts::stringToReaction = { - {OPEN_IN_BROWSER, ToastReactions::OpenInBrowser}, - {OPEN_PLAYER_IN_BROWSER, ToastReactions::OpenInPlayer}, - {OPEN_IN_STREAMLINK, ToastReactions::OpenInStreamlink}, - {DONT_OPEN, ToastReactions::DontOpen}}; - bool Toasts::isEnabled() { #ifdef Q_OS_WIN @@ -68,18 +62,6 @@ QString Toasts::findStringFromReaction( return Toasts::findStringFromReaction(static_cast(i)); } -ToastReactions Toasts::findReactionFromString(const QString &string) -{ - auto iterator = Toasts::stringToReaction.find(string); - if (iterator != Toasts::stringToReaction.end()) - { - return iterator->second; - } - else - { - return ToastReactions::DontOpen; - } -} void Toasts::sendChannelNotification(const QString &channelName, Platform p) { #ifdef Q_OS_WIN diff --git a/src/singletons/Toasts.hpp b/src/singletons/Toasts.hpp index a8a51e56b..777cf04e2 100644 --- a/src/singletons/Toasts.hpp +++ b/src/singletons/Toasts.hpp @@ -21,9 +21,7 @@ public: static QString findStringFromReaction(const ToastReactions &reaction); static QString findStringFromReaction( const pajlada::Settings::Setting &reaction); - static ToastReactions findReactionFromString(const QString &string); static std::map reactionToString; - static std::map stringToReaction; static bool isEnabled();