refactor: remove unused ignoredPhraseReplace setting (#6304)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user