Remove obsolete code from QChar autotest.
authorJason McDonald <jason.mcdonald@nokia.com>
Mon, 31 Oct 2011 02:57:14 +0000 (12:57 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 31 Oct 2011 05:59:18 +0000 (06:59 +0100)
QUnicodeTables::ligature() was removed from the API in 2006.  The
commit that disabled the test also changed the code to call
QChar::ligature(), which has never existed.

Change-Id: I056c17c178a527b076538fb007404ff0b735ba02
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/corelib/tools/qchar/tst_qchar.cpp

index 7f57471..a89250c 100644 (file)
@@ -92,7 +92,6 @@ private slots:
     void combiningClass();
     void digitValue();
     void decomposition();
-//     void ligature();
     void lineBreakClass();
     void normalization_data();
     void normalization();
@@ -589,19 +588,6 @@ void tst_QChar::decomposition()
     }
 }
 
-#if 0
-void tst_QChar::ligature()
-{
-    QVERIFY(QChar::ligature(0x0041, 0x00300) == 0xc0);
-    QVERIFY(QChar::ligature(0x0049, 0x00308) == 0xcf);
-    QVERIFY(QChar::ligature(0x0391, 0x00301) == 0x386);
-    QVERIFY(QChar::ligature(0x0627, 0x00653) == 0x622);
-
-    QVERIFY(QChar::ligature(0x1100, 0x1161) == 0xac00);
-    QVERIFY(QChar::ligature(0xac00, 0x11a8) == 0xac01);
-}
-#endif
-
 void tst_QChar::lineBreakClass()
 {
     QVERIFY(QUnicodeTables::lineBreakClass(0x0041u) == QUnicodeTables::LineBreak_AL);