Remove unused methods from QTestLogger.
authorJason McDonald <jason.mcdonald@nokia.com>
Wed, 24 Aug 2011 03:48:56 +0000 (13:48 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 29 Aug 2011 04:48:29 +0000 (06:48 +0200)
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 <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
src/testlib/qtestlogger.cpp
src/testlib/qtestlogger_p.h

index 7e9332a..4aa1738 100644 (file)
@@ -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;
index c9b9da1..b3fb114 100644 (file)
@@ -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;