From: Jason McDonald Date: Wed, 24 Aug 2011 03:48:56 +0000 (+1000) Subject: Remove unused methods from QTestLogger. X-Git-Tag: qt-v5.0.0-alpha1~3746 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a541bd9662b07e53cc2173b12b71bb07f188ace8;p=profile%2Fivi%2Fqtbase.git Remove unused methods from QTestLogger. The setLogFormat() and logFormat() methods are never called -- the log format is set in the call to the constructor and it would not make sense to change it during a test run. Change-Id: I59256f17f28bbc72d86cabfb2a961d2faf0e2d52 Reviewed-on: http://codereview.qt.nokia.com/3435 Reviewed-by: Qt Sanity Bot Reviewed-by: Rohan McGovern --- diff --git a/src/testlib/qtestlogger.cpp b/src/testlib/qtestlogger.cpp index 7e9332a..4aa1738 100644 --- a/src/testlib/qtestlogger.cpp +++ b/src/testlib/qtestlogger.cpp @@ -358,16 +358,6 @@ void QTestLogger::addMessage(MessageTypes type, const char *message, const char } } -void QTestLogger::setLogFormat(TestLoggerFormat fm) -{ - format = fm; -} - -QTestLogger::TestLoggerFormat QTestLogger::logFormat() -{ - return format; -} - int QTestLogger::passCount() const { return passCounter; diff --git a/src/testlib/qtestlogger_p.h b/src/testlib/qtestlogger_p.h index c9b9da1..b3fb114 100644 --- a/src/testlib/qtestlogger_p.h +++ b/src/testlib/qtestlogger_p.h @@ -87,9 +87,6 @@ class QTestLogger : public QAbstractTestLogger void addMessage(MessageTypes type, const char *message, const char *file = 0, int line = 0); - void setLogFormat(TestLoggerFormat fm); - TestLoggerFormat logFormat(); - int passCount() const; int failureCount() const; int errorCount() const;