refactor: remove unused ignoredPhraseReplace setting (#6304)

This commit is contained in:
pajlada
2025-06-28 15:27:46 +02:00
committed by GitHub
parent 42fb5ad077
commit 9e59fb1a5f
5 changed files with 15 additions and 11 deletions
+4 -4
View File
@@ -2,8 +2,7 @@
#include "Application.hpp"
#include "controllers/accounts/AccountController.hpp"
#include "providers/twitch/TwitchAccount.hpp"
#include "singletons/Settings.hpp"
#include "providers/twitch/TwitchAccount.hpp" // IWYU pragma: keep
namespace chatterino {
@@ -115,8 +114,9 @@ bool IgnorePhrase::containsEmote() const
IgnorePhrase IgnorePhrase::createEmpty()
{
return IgnorePhrase(QString(), false, false,
getSettings()->ignoredPhraseReplace.getValue(), true);
return {
{}, false, false, DEFAULT_IGNORE_PHRASE_REPLACE.toString(), true,
};
}
} // namespace chatterino
+3
View File
@@ -7,12 +7,15 @@
#include <pajlada/serialize.hpp>
#include <QRegularExpression>
#include <QString>
#include <QStringView>
#include <memory>
#include <unordered_map>
namespace chatterino {
constexpr inline QStringView DEFAULT_IGNORE_PHRASE_REPLACE = u"***";
struct Emote;
using EmotePtr = std::shared_ptr<const Emote>;