From 62e896608fd094a2a4b3b6a294d4bfc1dccb5861 Mon Sep 17 00:00:00 2001 From: Albert S Date: Tue, 16 Apr 2019 08:53:23 +0200 Subject: [PATCH] Utils: Removed QDebug logger --- cli/utils.cpp | 22 ---------------------- cli/utils.h | 3 +-- 2 files changed, 1 insertion(+), 24 deletions(-) diff --git a/cli/utils.cpp b/cli/utils.cpp index cbe1737..802af30 100644 --- a/cli/utils.cpp +++ b/cli/utils.cpp @@ -18,25 +18,3 @@ QByteArray Utils::readFile(QString path) } return data; } - -QDebug &Utils::info() -{ - static QDebug result = [] - { - QFile *file = new QFile(); - file->open(stderr, QIODevice::WriteOnly); - return QDebug(file); - }(); - return result; -} - -QDebug &Utils::error() -{ - static QDebug result = [] - { - QFile *file = new QFile(); - file->open(stdout, QIODevice::WriteOnly); - return QDebug(file); - }(); - return result; -} diff --git a/cli/utils.h b/cli/utils.h index fc64ea5..1f32da6 100644 --- a/cli/utils.h +++ b/cli/utils.h @@ -4,6 +4,7 @@ #include #include #include +#include #include "qssgeneralexception.h" class Utils @@ -11,8 +12,6 @@ class Utils public: Utils(); static QByteArray readFile(QString path); - static QDebug &info(); - static QDebug &error(); }; #endif // UTILS_H