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 <rohan.mcgovern@nokia.com>
This commit is contained in:
Jason McDonald 2011-10-31 13:11:28 +10:00 committed by Qt by Nokia
parent 665c9390d0
commit 2e8b151049

View 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());