diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-29 12:40:04 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-30 05:58:41 +0000 |
commit | c7e8f21a538c409abe70b90d7bba38386e90a876 (patch) | |
tree | c5d1e79d88c5728c29fa49106b0e7c40e0f5f01d /slideshow | |
parent | efbde08e2a9930edb4637824d9d3a768873314a8 (diff) |
loplugin:unusedmethods
Change-Id: Id3b5cd75d4357336ed592ef11a3f34d209f8e95f
Reviewed-on: https://gerrit.libreoffice.org/19636
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'slideshow')
-rw-r--r-- | slideshow/source/engine/activities/activitiesfactory.cxx | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/slideshow/source/engine/activities/activitiesfactory.cxx b/slideshow/source/engine/activities/activitiesfactory.cxx index fe3f01837a34..a237f5423920 100644 --- a/slideshow/source/engine/activities/activitiesfactory.cxx +++ b/slideshow/source/engine/activities/activitiesfactory.cxx @@ -170,74 +170,6 @@ public: "From and one of To or By, or To or By alone must be valid" ); } - virtual void startAnimation() - { - if (this->isDisposed() || !mpAnim) - return; - BaseType::startAnimation(); - - // start animation - mpAnim->start( BaseType::getShape(), - BaseType::getShapeAttributeLayer() ); - - // setup start and end value. Determine animation - // start value only when animation actually - // started up (this order is part of the Animation - // interface contract) - const ValueType aAnimationStartValue( mpAnim->getUnderlyingValue() ); - - // first of all, determine general type of - // animation, by inspecting which of the FromToBy values - // are actually valid. - // See http://www.w3.org/TR/smil20/animation.html#AnimationNS-FromToBy - // for a definition - if( maFrom ) - { - // From-to or From-by animation. According to - // SMIL spec, the To value takes precedence - // over the By value, if both are specified - if( maTo ) - { - // From-To animation - maStartValue = *maFrom; - maEndValue = *maTo; - } - else if( maBy ) - { - // From-By animation - maStartValue = *maFrom; - maEndValue = maStartValue + *maBy; - } - } - else - { - maStartValue = aAnimationStartValue; - maStartInterpolationValue = maStartValue; - - // By or To animation. According to SMIL spec, - // the To value takes precedence over the By - // value, if both are specified - if( maTo ) - { - // To animation - - // According to the SMIL spec - // (http://www.w3.org/TR/smil20/animation.html#animationNS-ToAnimation), - // the to animation interpolates between - // the _running_ underlying value and the to value (as the end value) - mbDynamicStartValue = true; - maPreviousValue = maStartValue; - maEndValue = *maTo; - } - else if( maBy ) - { - // By animation - maStartValue = aAnimationStartValue; - maEndValue = maStartValue + *maBy; - } - } - } - virtual void endAnimation() { // end animation @@ -340,13 +272,6 @@ public: } } - /// Disposable: - virtual void dispose() - { - mpAnim.reset(); - BaseType::dispose(); - } - private: const OptionalValueType maFrom; const OptionalValueType maTo; @@ -523,17 +448,6 @@ public: ENSURE_OR_THROW( !rValues.empty(), "Empty value vector" ); } - virtual void startAnimation() - { - if (this->isDisposed() || !mpAnim) - return; - BaseType::startAnimation(); - - // start animation - mpAnim->start( BaseType::getShape(), - BaseType::getShapeAttributeLayer() ); - } - virtual void endAnimation() { // end animation |