mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
kwin: remove unused static KWin::AnimationEffect::qecGaussian() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
d6a5d43221
commit
72b18e0232
3 changed files with 0 additions and 20 deletions
|
@ -29,7 +29,6 @@ QDebug operator<<(QDebug dbg, const KWin::AniData &a)
|
||||||
}
|
}
|
||||||
|
|
||||||
using namespace KWin;
|
using namespace KWin;
|
||||||
static int Gaussian = 46;
|
|
||||||
|
|
||||||
AniData::AniData()
|
AniData::AniData()
|
||||||
{
|
{
|
||||||
|
|
|
@ -634,15 +634,6 @@ float AnimationEffect::progress( const AniData &a ) const
|
||||||
return 1.0; // we're done and "waiting" at the target value
|
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 )
|
int AnimationEffect::metaData( MetaType type, uint meta )
|
||||||
{
|
{
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
|
|
@ -132,16 +132,6 @@ public:
|
||||||
virtual void paintWindow( EffectWindow* w, int mask, QRegion region, WindowPaintData& data );
|
virtual void paintWindow( EffectWindow* w, int mask, QRegion region, WindowPaintData& data );
|
||||||
virtual void postPaintScreen();
|
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() {
|
static inline qint64 clock() {
|
||||||
return s_clock.elapsed();
|
return s_clock.elapsed();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue