[effects/wobblywindows] Move computeVectorBounds into ifdef section

Fixes unused function warning with clang.
This commit is contained in:
Martin Gräßlin 2017-07-31 17:58:57 +02:00
parent 8b2b11196b
commit 3f238470c8

View file

@ -686,6 +686,7 @@ static inline void fixVectorBounds(WobblyWindowsEffect::Pair& vec, qreal min, qr
}
}
#if defined COMPUTE_STATS
static inline void computeVectorBounds(WobblyWindowsEffect::Pair& vec, WobblyWindowsEffect::Pair& bound)
{
if (fabs(vec.x) < bound.x) {
@ -699,6 +700,7 @@ static inline void computeVectorBounds(WobblyWindowsEffect::Pair& vec, WobblyWin
bound.y = fabs(vec.y);
}
}
#endif
} // close the anonymous namespace