mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
deleted dead code
not needed anymore since latest commit
This commit is contained in:
parent
a592a3e882
commit
cd1f717c36
2 changed files with 0 additions and 20 deletions
|
@ -33,12 +33,6 @@ std::map<ToastReactions, QString> Toasts::reactionToString = {
|
|||
{ToastReactions::OpenInStreamlink, OPEN_IN_STREAMLINK},
|
||||
{ToastReactions::DontOpen, DONT_OPEN}};
|
||||
|
||||
std::map<QString, ToastReactions> 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<ToastReactions>(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
|
||||
|
|
|
@ -21,9 +21,7 @@ public:
|
|||
static QString findStringFromReaction(const ToastReactions &reaction);
|
||||
static QString findStringFromReaction(
|
||||
const pajlada::Settings::Setting<int> &reaction);
|
||||
static ToastReactions findReactionFromString(const QString &string);
|
||||
static std::map<ToastReactions, QString> reactionToString;
|
||||
static std::map<QString, ToastReactions> stringToReaction;
|
||||
|
||||
static bool isEnabled();
|
||||
|
||||
|
|
Loading…
Reference in a new issue