From ec1bd5622e9a954fc19b12b8db60e349a7fe3d2b Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Wed, 10 Oct 2018 06:17:23 -0400 Subject: [PATCH] no need for filter --- GUI/host/textthread.cc | 1 - GUI/host/textthread.h | 1 - GUI/mainwindow.cpp | 2 -- 3 files changed, 4 deletions(-) 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;