Remove dead code in QDeclarativeSvgParser
authorKent Hansen <kent.hansen@nokia.com>
Wed, 28 Sep 2011 11:45:39 +0000 (13:45 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 29 Sep 2011 06:31:26 +0000 (08:31 +0200)
'toDouble(const QChar *&str)' is the only one still in use.

Change-Id: I3e5af822a4772f1f11c8ee7011e847963077587d
Reviewed-on: http://codereview.qt-project.org/5717
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/declarative/util/qdeclarativesvgparser.cpp

index 36714d7..e8ceb21 100644 (file)
@@ -142,25 +142,6 @@ static qreal toDouble(const QChar *&str)
     return val;
 
 }
-static qreal toDouble(const QString &str, bool *ok = NULL)
-{
-    const QChar *c = str.constData();
-    qreal res = toDouble(c);
-    if (ok) {
-        *ok = ((*c) == QLatin1Char('\0'));
-    }
-    return res;
-}
-
-static qreal toDouble(const QStringRef &str, bool *ok = NULL)
-{
-    const QChar *c = str.constData();
-    qreal res = toDouble(c);
-    if (ok) {
-        *ok = (c == (str.constData() + str.length()));
-    }
-    return res;
-}
 static inline void parseNumbersArray(const QChar *&str, QVarLengthArray<qreal, 8> &points)
 {
     while (str->isSpace())