summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpaintengineex.cpp
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2010-06-16 09:59:34 (GMT)
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2010-06-16 10:20:57 (GMT)
commit28e23016eca537beae2da833603f3063b3bc5bcd (patch)
treeab7c688e5fbf353713c08da5a9a8f9e30b45bade /src/gui/painting/qpaintengineex.cpp
parent179967425585a70fd626e98bf4f34a8e48998f35 (diff)
downloadQt-28e23016eca537beae2da833603f3063b3bc5bcd.zip
Qt-28e23016eca537beae2da833603f3063b3bc5bcd.tar.gz
Qt-28e23016eca537beae2da833603f3063b3bc5bcd.tar.bz2
Removed unnecessary lines of code.
Reviewed-by: Gunnar
Diffstat (limited to 'src/gui/painting/qpaintengineex.cpp')
-rw-r--r--src/gui/painting/qpaintengineex.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gui/painting/qpaintengineex.cpp b/src/gui/painting/qpaintengineex.cpp
index ff82d59..e0746fb 100644
--- a/src/gui/painting/qpaintengineex.cpp
+++ b/src/gui/painting/qpaintengineex.cpp
@@ -494,11 +494,9 @@ void QPaintEngineEx::stroke(const QVectorPath &path, const QPen &pen)
} else {
d->activeStroker->moveTo(points[0], points[1]);
points += 2;
- ++types;
while (points < lastPoint) {
d->activeStroker->lineTo(points[0], points[1]);
points += 2;
- ++types;
}
if (path.hasImplicitClose())
d->activeStroker->lineTo(path.points()[0], path.points()[1]);
@@ -561,12 +559,10 @@ void QPaintEngineEx::stroke(const QVectorPath &path, const QPen &pen)
QPointF p = ((QPointF *)points)[0] * state()->matrix;
d->activeStroker->moveTo(p.x(), p.y());
points += 2;
- ++types;
while (points < lastPoint) {
QPointF p = ((QPointF *)points)[0] * state()->matrix;
d->activeStroker->lineTo(p.x(), p.y());
points += 2;
- ++types;
}
if (path.hasImplicitClose())
d->activeStroker->lineTo(p.x(), p.y());