aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2011-09-28 13:45:39 +0200
committerQt by Nokia <qt-info@nokia.com>2011-09-29 08:31:26 +0200
commitc3d8402af96ed9e1dcb276b7380aa64133870d7d (patch)
treed011998cb1816b2850576c42d4a975355f0d716e /src
parentc06f94728ba826531210926c972796d119422dad (diff)
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 <qt_sanity_bot@ovi.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/declarative/util/qdeclarativesvgparser.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/declarative/util/qdeclarativesvgparser.cpp b/src/declarative/util/qdeclarativesvgparser.cpp
index 36714d7a38..e8ceb2116c 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<qreal, 8> &points)
{
while (str->isSpace())