diff --git a/src/util/trace.h b/src/util/trace.h index 4c9615bb8677..09b07eb42a17 100644 --- a/src/util/trace.h +++ b/src/util/trace.h @@ -11,8 +11,7 @@ class Trace { public: - Trace(const char* tag, const char* arg=NULL, - bool writeToStdout=false, bool time=true) + Trace(const char* tag, const char* arg = nullptr, bool writeToStdout = false, bool time = true) : m_writeToStdout(writeToStdout), m_time(time) { if (writeToStdout || CmdlineArgs::Instance().getDeveloper()) { @@ -20,15 +19,6 @@ class Trace { } } - Trace(const char* tag, int arg, - bool writeToStdout=false, bool time=true) - : m_writeToStdout(writeToStdout), - m_time(time) { - if (writeToStdout || CmdlineArgs::Instance().getDeveloper()) { - initialize(tag, QString::number(arg)); - } - } - Trace(const char* tag, const QString& arg, bool writeToStdout=false, bool time=true) : m_writeToStdout(writeToStdout), @@ -38,7 +28,7 @@ class Trace { } } - virtual ~Trace() { + ~Trace() { // Proxy for whether initialize was called. if (m_tag.isEmpty()) { return; @@ -86,16 +76,7 @@ class Trace { } QString m_tag; - const bool m_writeToStdout, m_time; PerformanceTimer m_timer; - -}; - -class DebugTrace : public Trace { - public: - DebugTrace(const char* tag, bool time=true) - : Trace(tag, "", CmdlineArgs::Instance().getDeveloper(), time) { - } - virtual ~DebugTrace() { - } + bool m_writeToStdout; + bool m_time; };