From c3d8402af96ed9e1dcb276b7380aa64133870d7d Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Wed, 28 Sep 2011 13:45:39 +0200 Subject: [PATCH] Remove dead code in QDeclarativeSvgParser '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 Reviewed-by: Michael Brasser --- src/declarative/util/qdeclarativesvgparser.cpp | 19 ------------------- 1 files changed, 0 insertions(+), 19 deletions(-) diff --git a/src/declarative/util/qdeclarativesvgparser.cpp b/src/declarative/util/qdeclarativesvgparser.cpp index 36714d7..e8ceb21 100644 --- a/src/declarative/util/qdeclarativesvgparser.cpp +++ b/src/declarative/util/qdeclarativesvgparser.cpp @@ -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 &points) { while (str->isSpace()) -- 1.7.2.5