kwin: remove unused static KWin::AnimationEffect::qecGaussian() method

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-12-12 09:28:41 +02:00
parent d6a5d43221
commit 72b18e0232
3 changed files with 0 additions and 20 deletions

View file

@ -29,7 +29,6 @@ QDebug operator<<(QDebug dbg, const KWin::AniData &a)
}
using namespace KWin;
static int Gaussian = 46;
AniData::AniData()
{

View file

@ -634,15 +634,6 @@ float AnimationEffect::progress( const AniData &a ) const
return 1.0; // we're done and "waiting" at the target value
}
// TODO - get this out of the header - the functionpointer usage of QEasingCurve somehow sucks ;-)
// qreal AnimationEffect::qecGaussian(qreal progress) // exp(-5*(2*x-1)^2)
// {
// progress = 2*progress - 1;
// progress *= -5*progress;
// return qExp(progress);
// }
int AnimationEffect::metaData( MetaType type, uint meta )
{
switch (type) {

View file

@ -132,16 +132,6 @@ public:
virtual void paintWindow( EffectWindow* w, int mask, QRegion region, WindowPaintData& data );
virtual void postPaintScreen();
/**
* Gaussian (bumper) animation curve for QEasingCurve
*/
static qreal qecGaussian(qreal progress)
{
progress = 2*progress - 1;
progress *= -5*progress;
return qExp(progress);
}
static inline qint64 clock() {
return s_clock.elapsed();
}