QTextEngine: drop unused leftovers
authorKonstantin Ritt <ritt.ks@gmail.com>
Tue, 8 May 2012 00:05:36 +0000 (03:05 +0300)
committerQt by Nokia <qt-info@nokia.com>
Tue, 8 May 2012 09:47:29 +0000 (11:47 +0200)
qIsControlChar() doesn't handle SMP code points, it is outdated
and is not used anymore; drop it

Change-Id: I934ace1e44eb2652e426fccc579b563d31197fca
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
src/gui/text/qtextengine_p.h

index aac2390..4d9a49c 100644 (file)
@@ -339,14 +339,6 @@ public:
     QFontEngine *fontEngine;
 };
 
-inline bool qIsControlChar(ushort uc)
-{
-    return uc >= 0x200b && uc <= 0x206f
-        && (uc <= 0x200f /* ZW Space, ZWNJ, ZWJ, LRM and RLM */
-            || (uc >= 0x2028 && uc <= 0x202f /* LS, PS, LRE, RLE, PDF, LRO, RLO, NNBSP */)
-            || uc >= 0x206a /* ISS, ASS, IAFS, AFS, NADS, NODS */);
-}
-
 struct Q_AUTOTEST_EXPORT QScriptItem
 {
     inline QScriptItem()