Remove disabled code from QRegExp test
authorJason McDonald <jason.mcdonald@nokia.com>
Mon, 31 Oct 2011 03:11:28 +0000 (13:11 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 31 Oct 2011 05:59:30 +0000 (06:59 +0100)
The removed code was disabled before the tests were imported into the Qt
repository in 2006, so its meaning or usefulness is lost in the mists of
time.

Change-Id: Iccdf5638106b054f02ed73790f7acda1b17b045b
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/corelib/tools/qregexp/tst_qregexp.cpp

index e3d1550..13b0200 100644 (file)
@@ -360,9 +360,6 @@ void tst_QRegExp::indexIn_addMoreRows(const QByteArray &stri)
         static const char * const squareRegExp[] = {
            "^a(?:(\\1aa)a)*$",
            "^(\\2(\\1a))+$",
-#if 0
-           "^(?:(\\B\\1aa|^a))+$",
-#endif
            "^((\\2a)*)\\1\\2a$",
            0
         };
@@ -1215,9 +1212,6 @@ void tst_QRegExp::prepareEngineOptimization()
     QCOMPARE(rx1.matchedLength(), 2);
     QCOMPARE(rx1.capturedTexts(), QStringList() << "fo" << "f" << "o" << "");
     QCOMPARE(rx1.pos(2), 1);
-#if 0
-    QCOMPARE(rx1.pos(3), -1); // ###
-#endif
 
     QRegExp rx3;
     QVERIFY(rx3.isValid());