Remove debug code from qsortfilterproxymodel test
authorJason McDonald <jason.mcdonald@nokia.com>
Mon, 31 Oct 2011 07:48:38 +0000 (17:48 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 1 Nov 2011 03:58:57 +0000 (04:58 +0100)
Any test diagnostics that are useful should be part of the regular test
output, as the CI system cannot switch on commented-out code when there
is a test failure.

Change-Id: I80691b274d9d2abda72bca894ace9de545410ed8
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/widgets/itemviews/qsortfilterproxymodel/tst_qsortfilterproxymodel.cpp

index d173238..497034b 100644 (file)
@@ -1436,14 +1436,6 @@ void tst_QSortFilterProxyModel::buildHierarchy(const QStringList &l, QAbstractIt
             QVERIFY(index.isValid());
             m->setData(index, token, Qt::DisplayRole);
             ++row;
-#if 0
-            {
-                QString txt = token;
-                for (int t = 0; t < ind; ++t)
-                    txt.prepend(' ');
-                qDebug() << "#" << txt;
-            }
-#endif
         }
     }
 }
@@ -1472,14 +1464,10 @@ void tst_QSortFilterProxyModel::checkHierarchy(const QStringList &l, const QAbst
             QModelIndex index = m->index(row, 0, parent);
             QVERIFY(index.isValid());
             QString str =  m->data(index, Qt::DisplayRole).toString();
-#if 0
-            qDebug() << "proxy data is" << str << "level" << indent;
-#endif
             QCOMPARE(str, token);
             ++row;
         }
     }
-
 }