From 8f14a00e88a4c37a74f6f7a2670c8285ec5f8792 Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Wed, 17 Oct 2018 00:37:39 +0300 Subject: [PATCH] [effects/wobblywindows] Delete commented code Test Plan: Compiles. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D16260 --- effects/wobblywindows/wobblywindows.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/effects/wobblywindows/wobblywindows.cpp b/effects/wobblywindows/wobblywindows.cpp index 68ce56772b..cd50ae732f 100644 --- a/effects/wobblywindows/wobblywindows.cpp +++ b/effects/wobblywindows/wobblywindows.cpp @@ -14,13 +14,6 @@ License. See the file "COPYING" for the exact licensing terms. #include -#define USE_ASSERT -#ifdef USE_ASSERT -#define ASSERT1 assert -#else -#define ASSERT1 -#endif - //#define COMPUTE_STATS // if you enable it and run kwin in a terminal from the session it manages, @@ -626,19 +619,9 @@ WobblyWindowsEffect::Pair WobblyWindowsEffect::computeBezierPoint(const WindowWo Pair topleft = wwi.origin[0]; Pair bottomright = wwi.origin[wwi.count-1]; -// ASSERT1(point.x >= topleft.x); -// ASSERT1(point.y >= topleft.y); -// ASSERT1(point.x <= bottomright.x); -// ASSERT1(point.y <= bottomright.y); - qreal tx = (point.x - topleft.x) / (bottomright.x - topleft.x); qreal ty = (point.y - topleft.y) / (bottomright.y - topleft.y); -// ASSERT1(tx >= 0); -// ASSERT1(tx <= 1); -// ASSERT1(ty >= 0); -// ASSERT1(ty <= 1); - // compute polynomial coeff qreal px[4];