diff --git a/cli/utils.cpp b/cli/utils.cpp index 9533fa3..9832926 100644 --- a/cli/utils.cpp +++ b/cli/utils.cpp @@ -20,22 +20,4 @@ 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 b283274..49cd27b 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,7 @@ class Utils public: Utils(); static QByteArray readFile(QString path); - static QDebug &info(); - static QDebug &error(); + }; #endif // UTILS_H