[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
This commit is contained in:
parent
899bd4de3f
commit
8f14a00e88
1 changed files with 0 additions and 17 deletions
|
@ -14,13 +14,6 @@ License. See the file "COPYING" for the exact licensing terms.
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#define USE_ASSERT
|
|
||||||
#ifdef USE_ASSERT
|
|
||||||
#define ASSERT1 assert
|
|
||||||
#else
|
|
||||||
#define ASSERT1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//#define COMPUTE_STATS
|
//#define COMPUTE_STATS
|
||||||
|
|
||||||
// if you enable it and run kwin in a terminal from the session it manages,
|
// 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 topleft = wwi.origin[0];
|
||||||
Pair bottomright = wwi.origin[wwi.count-1];
|
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 tx = (point.x - topleft.x) / (bottomright.x - topleft.x);
|
||||||
qreal ty = (point.y - topleft.y) / (bottomright.y - topleft.y);
|
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
|
// compute polynomial coeff
|
||||||
|
|
||||||
qreal px[4];
|
qreal px[4];
|
||||||
|
|
Loading…
Reference in a new issue