Remove unused local variables

This commit is contained in:
Aleix Pol 2021-06-28 15:56:43 +02:00
parent 9fd111d867
commit c3e0ba8ff5
1 changed files with 0 additions and 2 deletions

View File

@ -885,7 +885,6 @@ void Svg::setScaleFactor(qreal ratio)
d->scaleFactor = floor(ratio);
d->s_lastScaleFactor = d->scaleFactor;
// not resize() because we want to do it unconditionally
QRectF rect;
d->naturalSize = SvgRectsCache::instance()->naturalSize(d->path, d->scaleFactor);
if (d->naturalSize.isEmpty()) {
@ -1031,7 +1030,6 @@ bool Svg::isValid() const
}
// try very hard to avoid creation of a parser
QRectF rect;
QSizeF naturalSize = SvgRectsCache::instance()->naturalSize(d->path, d->scaleFactor);
if (!naturalSize.isEmpty()) {
return true;