Utils: Removed QDebug logger
This commit is contained in:
		| @@ -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; | ||||
| } | ||||
|   | ||||
| @@ -4,6 +4,7 @@ | ||||
| #include <QString> | ||||
| #include <QByteArray> | ||||
| #include <QTextStream> | ||||
| #include <QDebug> | ||||
| #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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user