[effects/wobblywindows] Move computeVectorBounds into ifdef section
Fixes unused function warning with clang.
This commit is contained in:
parent
8b2b11196b
commit
3f238470c8
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue