From 2e8b151049301a10279d1b2ad3e3b5ed92a9ca19 Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Mon, 31 Oct 2011 13:11:28 +1000 Subject: Remove disabled code from QRegExp test 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 --- tests/auto/corelib/tools/qregexp/tst_qregexp.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'tests/auto/corelib/tools/qregexp') diff --git a/tests/auto/corelib/tools/qregexp/tst_qregexp.cpp b/tests/auto/corelib/tools/qregexp/tst_qregexp.cpp index e3d1550b54..13b020023c 100644 --- a/tests/auto/corelib/tools/qregexp/tst_qregexp.cpp +++ b/tests/auto/corelib/tools/qregexp/tst_qregexp.cpp @@ -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()); -- cgit v1.2.3