diff --git a/src/debug/AssertInGuiThread.hpp b/src/debug/AssertInGuiThread.hpp deleted file mode 100644 index b43f2695d..000000000 --- a/src/debug/AssertInGuiThread.hpp +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once - -#include -#include -#include - -namespace AB_NAMESPACE { - -static bool isGuiThread() -{ - return QCoreApplication::instance()->thread() == QThread::currentThread(); -} - -static void assertInGuiThread() -{ -#ifdef _DEBUG - assert(isGuiThread()); -#endif -} - -} // namespace AB_NAMESPACE diff --git a/src/debug/Benchmark.cpp b/src/debug/Benchmark.cpp deleted file mode 100644 index 1078cc73c..000000000 --- a/src/debug/Benchmark.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#include "Inject.hpp" -#include "Inject.hpp" #include "Inject.hpp" #include "Inject.hpp" diff --git a/src/debug/Benchmark.hpp b/src/debug/Benchmark.hpp deleted file mode 100644 index c477aa346..000000000 --- a/src/debug/Benchmark.hpp +++ /dev/null @@ -1,22 +0,0 @@ -#pragma once - -#include "debug/Log.hpp" - -#include -#include - -namespace AB_NAMESPACE { - -class BenchmarkGuard : boost::noncopyable -{ -public: - BenchmarkGuard(const QString &_name); - ~BenchmarkGuard(); - qreal getElapsedMs(); - -private: - QElapsedTimer timer_; - QString name_; -}; - -} // namespace AB_NAMESPACE diff --git a/src/debug/Log.hpp b/src/debug/Log.hpp deleted file mode 100644 index af8b136e2..000000000 --- a/src/debug/Log.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once - -#include "util/Helpers.hpp" - -#include -#include - -namespace AB_NAMESPACE { - -template -inline void log(const std::string &formatString, Args &&... args) -{ - qDebug().noquote() << QTime::currentTime().toString("hh:mm:ss.zzz") - << fS(formatString, std::forward(args)...).c_str(); -} - -template -inline void log(const char *formatString, Args &&... args) -{ - log(std::string(formatString), std::forward(args)...); -} - -template -inline void log(const QString &formatString, Args &&... args) -{ - log(formatString.toStdString(), std::forward(args)...); -} - -} // namespace AB_NAMESPACE diff --git a/src/singletons/Updates.cpp b/src/singletons/Updates.cpp index c47d5367d..b5fcea2ff 100644 --- a/src/singletons/Updates.cpp +++ b/src/singletons/Updates.cpp @@ -207,8 +207,6 @@ void Updates::checkForUpdates() } #endif - return; - QString url = "https://notitia.chatterino.com/version/chatterino/" CHATTERINO_OS "/" + currentBranch();