From 7fd3672de2d1e052d0db12f365528e79681eca69 Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Fri, 10 Aug 2018 15:29:27 +0300 Subject: [PATCH] [effects/minimizeanimation] Delete useless comments Summary: Comments like "// Call the next effect." are sort of // Add 1 to foo. foo += 1 they don't give any useful information and it would be better without them. Test Plan: Still compiles. Reviewers: #kwin Subscribers: davidedmundson, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D14728 --- effects/minimizeanimation/minimizeanimation.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/effects/minimizeanimation/minimizeanimation.cpp b/effects/minimizeanimation/minimizeanimation.cpp index 569d8d34f1..dbb9c6cb0a 100644 --- a/effects/minimizeanimation/minimizeanimation.cpp +++ b/effects/minimizeanimation/minimizeanimation.cpp @@ -65,10 +65,7 @@ void MinimizeAnimationEffect::prePaintScreen(ScreenPrePaintData &data, int time) void MinimizeAnimationEffect::prePaintWindow(EffectWindow *w, WindowPrePaintData &data, int time) { - // Schedule window for transformation if the animation is still in - // progress if (m_animations.contains(w)) { - // We'll transform this window data.setTransformed(); w->enablePainting(EffectWindow::PAINT_DISABLED_BY_MINIMIZE); } @@ -97,7 +94,6 @@ void MinimizeAnimationEffect::paintWindow(EffectWindow *w, int mask, QRegion reg data.multiplyOpacity(interpolate(1.0, 0.1, progress)); } - // Call the next effect. effects->paintWindow(w, mask, region, data); } @@ -114,7 +110,6 @@ void MinimizeAnimationEffect::postPaintScreen() effects->addRepaintFull(); - // Call the next effect. effects->postPaintScreen(); }