From 9c2b53dd047d607793d090d38df137c0829b5a83 Mon Sep 17 00:00:00 2001 From: Boudewijn Rempt Date: Fri, 12 Jun 2015 03:07:43 +0200 Subject: [PATCH] Warnings--: remove set-but-unused variable Maybe something left over from debugging? --- effects/zoom/zoom.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/effects/zoom/zoom.cpp b/effects/zoom/zoom.cpp index 50cff0f1e9..325c94f5fe 100644 --- a/effects/zoom/zoom.cpp +++ b/effects/zoom/zoom.cpp @@ -259,9 +259,7 @@ void ZoomEffect::reconfigure(ReconfigureFlags) void ZoomEffect::prePaintScreen(ScreenPrePaintData& data, int time) { - bool altered = false; if (zoom != target_zoom) { - altered = true; const float zoomDist = qAbs(target_zoom - source_zoom); if (target_zoom > zoom) zoom = qMin(zoom + ((zoomDist * time) / animationTime(150*zoomFactor)), target_zoom);