summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndré Klitzing <aklitzing@gmail.com>2017-10-06 13:29:12 +0200
committerAndré Klitzing <aklitzing@gmail.com>2017-10-06 14:10:29 +0000
commit8241a99426d454c23a42640b781889adc820ba02 (patch)
tree90cd055f9fde25468ebc7bcc2a1b342046ac56f4 /src
parent2b4487a1c5fb4e7a6c942bf8c2fa995b6ea5ac01 (diff)
downloadqtsvg-8241a99426d454c23a42640b781889adc820ba02.tar.gz
Remove unused variables
Change-Id: I82fe38e2fbcc070d02d2acb34a43a8c971e84ae9 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/svg/qsvggraphics.cpp1
-rw-r--r--src/svg/qsvghandler.cpp10
2 files changed, 0 insertions, 11 deletions
diff --git a/src/svg/qsvggraphics.cpp b/src/svg/qsvggraphics.cpp
index 387136f..b1047eb 100644
--- a/src/svg/qsvggraphics.cpp
+++ b/src/svg/qsvggraphics.cpp
@@ -316,7 +316,6 @@ void QSvgText::draw(QPainter *p, QSvgExtraStates &states)
bool appendSpace = false;
QVector<QString> paragraphs;
- QStack<QTextCharFormat> formats;
QVector<QVector<QTextLayout::FormatRange> > formatRanges(1);
paragraphs.push_back(QString());
diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp
index 88d85e3..7841fa3 100644
--- a/src/svg/qsvghandler.cpp
+++ b/src/svg/qsvghandler.cpp
@@ -2308,7 +2308,6 @@ static bool parseAnimateColorNode(QSvgNode *parent,
const QXmlStreamAttributes &attributes,
QSvgHandler *handler)
{
- QString typeStr = attributes.value(QLatin1String("type")).toString();
QStringRef fromStr = attributes.value(QLatin1String("from"));
QStringRef toStr = attributes.value(QLatin1String("to"));
QString valuesStr = attributes.value(QLatin1String("values")).toString();
@@ -2393,7 +2392,6 @@ static bool parseAnimateTransformNode(QSvgNode *parent,
QString values = attributes.value(QLatin1String("values")).toString();
QString beginStr = attributes.value(QLatin1String("begin")).toString();
QString durStr = attributes.value(QLatin1String("dur")).toString();
- QString targetStr = attributes.value(QLatin1String("attributeName")).toString();
QString repeatStr = attributes.value(QLatin1String("repeatCount")).toString();
QString fillStr = attributes.value(QLatin1String("fill")).toString();
QString fromStr = attributes.value(QLatin1String("from")).toString();
@@ -3197,14 +3195,6 @@ static QSvgNode *createSvgNode(QSvgNode *parent,
{
Q_UNUSED(parent); Q_UNUSED(attributes);
- QString baseProfile = attributes.value(QLatin1String("baseProfile")).toString();
-#if 0
- if (baseProfile.isEmpty() && baseProfile != QLatin1String("tiny")) {
- qCWarning(lcSvgHandler, "Profile is %s while we only support tiny!",
- qPrintable(baseProfile));
- }
-#endif
-
QSvgTinyDocument *node = new QSvgTinyDocument();
QString widthStr = attributes.value(QLatin1String("width")).toString();
QString heightStr = attributes.value(QLatin1String("height")).toString();