From 1755bfa667daaa4755a41e8b284dd3557b26d380 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Sat, 7 Feb 2009 19:05:43 +0000 Subject: [PATCH] kill a bit of old dead code svn path=/trunk/KDE/kdelibs/; revision=922905 --- framesvg.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/framesvg.cpp b/framesvg.cpp index f192607e7..284f65263 100644 --- a/framesvg.cpp +++ b/framesvg.cpp @@ -425,16 +425,6 @@ void FrameSvgPrivate::generateBackground(FrameData *frame) p.setCompositionMode(QPainter::CompositionMode_Source); p.setRenderHint(QPainter::SmoothPixmapTransform); - //if we must stretch the center or the borders we compute how much we will have to stretch - //the svg to get the desired element sizes - QSizeF scaledContentSize(0, 0); - if (q->elementSize(prefix + "center").width() > 0 && - q->elementSize(prefix + "center").height() > 0 && - (!frame->tileCenter || frame->stretchBorders)) { - scaledContentSize = QSizeF(contentWidth * ((qreal)q->size().width() / (qreal)q->elementSize(prefix + "center").width()), - contentHeight * ((qreal)q->size().height() / (qreal)q->elementSize(prefix + "center").height())); - } - //CENTER if (frame->tileCenter) { if (contentHeight > 0 && contentWidth > 0) {