Utils: Removed QDebug logger

This commit is contained in:
Albert S. 2019-04-16 08:53:23 +02:00
parent f423d0078a
commit 62e896608f
2 changed files with 1 additions and 24 deletions

View File

@ -18,25 +18,3 @@ QByteArray Utils::readFile(QString path)
} }
return data; 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;
}

View File

@ -4,6 +4,7 @@
#include <QString> #include <QString>
#include <QByteArray> #include <QByteArray>
#include <QTextStream> #include <QTextStream>
#include <QDebug>
#include "qssgeneralexception.h" #include "qssgeneralexception.h"
class Utils class Utils
@ -11,8 +12,6 @@ class Utils
public: public:
Utils(); Utils();
static QByteArray readFile(QString path); static QByteArray readFile(QString path);
static QDebug &info();
static QDebug &error();
}; };
#endif // UTILS_H #endif // UTILS_H