diff --git a/GUI/host/textthread.cc b/GUI/host/textthread.cc index 1bf3849..d8df82a 100644 --- a/GUI/host/textthread.cc +++ b/GUI/host/textthread.cc @@ -37,7 +37,6 @@ void TextThread::Flush() void TextThread::AddSentence(std::wstring sentence) { - sentence = std::regex_replace(sentence, std::wregex(filter), L""); // Dispatch to extensions occurs here. Don't hold mutex! Extensions might take a while! if (Output(this, sentence)) { diff --git a/GUI/host/textthread.h b/GUI/host/textthread.h index 02ee810..60c2d18 100644 --- a/GUI/host/textthread.h +++ b/GUI/host/textthread.h @@ -14,7 +14,6 @@ public: inline static OutputCallback Output; - inline static std::wstring filter = L""; inline static int flushDelay = 250; // flush every 250ms by default inline static int maxBufferSize = 200; inline static int threadCounter = 0; diff --git a/GUI/mainwindow.cpp b/GUI/mainwindow.cpp index 6683e5b..7a1311e 100644 --- a/GUI/mainwindow.cpp +++ b/GUI/mainwindow.cpp @@ -15,7 +15,6 @@ MainWindow::MainWindow(QWidget *parent) : // TODO: add GUI for changing these if (settings.contains("Flush_Delay")) TextThread::flushDelay = settings.value("Flush_Delay").toInt(); if (settings.contains("Max_Buffer_Size")) TextThread::maxBufferSize = settings.value("Max_Buffer_Size").toInt(); - if (settings.contains("Filter")) TextThread::filter = settings.value("Filter").toString().toStdWString(); processCombo = findChild("processCombo"); ttCombo = findChild("ttCombo"); @@ -44,7 +43,6 @@ MainWindow::~MainWindow() settings.setValue("Window", this->geometry()); settings.setValue("Flush_Delay", TextThread::flushDelay); settings.setValue("Max_Buffer_Size", TextThread::maxBufferSize); - settings.setValue("Filter", QString::fromStdWString(TextThread::filter)); settings.sync(); Host::Close(); delete ui;