loplugin:virtualdead unused param in Animation::prefetch

Change-Id: I7eaf01548567ce560b0e32f222880d21b966c78d
Reviewed-on: https://gerrit.libreoffice.org/81071
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2019-10-17 14:42:29 +02:00
parent c66e8c7f94
commit 33e176552d
8 changed files with 13 additions and 27 deletions

View File

@@ -292,9 +292,6 @@ slideshow/source/engine/opengl/TransitionImpl.hxx:174
slideshow/source/engine/opengl/TransitionImpl.hxx:180 slideshow/source/engine/opengl/TransitionImpl.hxx:180
void OGLTransitionImpl::finish(double,double,double,double,double,) void OGLTransitionImpl::finish(double,double,double,double,double,)
00000 00000
slideshow/source/inc/animation.hxx:61
void slideshow::internal::Animation::prefetch(const class std::shared_ptr<class slideshow::internal::AnimatableShape> &,const class std::shared_ptr<class slideshow::internal::ShapeAttributeLayer> &,)
00
starmath/source/wordexportbase.hxx:37 starmath/source/wordexportbase.hxx:37
void SmWordExportBase::HandleText(const class SmNode *,int,) void SmWordExportBase::HandleText(const class SmNode *,int,)
10 10

View File

@@ -88,8 +88,7 @@ namespace slideshow
// Animation interface // Animation interface
virtual void prefetch( const AnimatableShapeSharedPtr&, virtual void prefetch() override
const ShapeAttributeLayerSharedPtr& ) override
{} {}
virtual void start( const AnimatableShapeSharedPtr& rShape, virtual void start( const AnimatableShapeSharedPtr& rShape,
@@ -242,8 +241,7 @@ namespace slideshow
// Animation interface // Animation interface
virtual void prefetch( const AnimatableShapeSharedPtr&, virtual void prefetch() override
const ShapeAttributeLayerSharedPtr& ) override
{} {}
virtual void start( const AnimatableShapeSharedPtr& rShape, virtual void start( const AnimatableShapeSharedPtr& rShape,
@@ -440,8 +438,7 @@ namespace slideshow
// Animation interface // Animation interface
virtual void prefetch( const AnimatableShapeSharedPtr&, virtual void prefetch()
const ShapeAttributeLayerSharedPtr& )
{} {}
virtual void start( const AnimatableShapeSharedPtr& rShape, virtual void start( const AnimatableShapeSharedPtr& rShape,

View File

@@ -49,8 +49,7 @@ public:
"HSLWrapper::HSLWrapper(): Invalid color animation delegate" ); "HSLWrapper::HSLWrapper(): Invalid color animation delegate" );
} }
virtual void prefetch( const AnimatableShapeSharedPtr&, virtual void prefetch() override
const ShapeAttributeLayerSharedPtr& ) override
{} {}
virtual void start( const AnimatableShapeSharedPtr& rShape, virtual void start( const AnimatableShapeSharedPtr& rShape,

View File

@@ -852,9 +852,7 @@ ActivitySharedPtr SlideShowImpl::createSlideTransition(
// reached final size // reached final size
maEventQueue.addEvent( maEventQueue.addEvent(
makeEvent( [pTransition] () { makeEvent( [pTransition] () {
pTransition->prefetch( pTransition->prefetch(); },
AnimatableShapeSharedPtr(),
ShapeAttributeLayerSharedPtr()); },
"Animation::prefetch")); "Animation::prefetch"));
return ActivitySharedPtr( return ActivitySharedPtr(

View File

@@ -63,8 +63,7 @@ public:
// Animation interface // Animation interface
virtual void prefetch( const AnimatableShapeSharedPtr& rShape, virtual void prefetch() override;
const ShapeAttributeLayerSharedPtr& rAttrLayer ) override;
virtual void start( const AnimatableShapeSharedPtr& rShape, virtual void start( const AnimatableShapeSharedPtr& rShape,
const ShapeAttributeLayerSharedPtr& rAttrLayer ) override; const ShapeAttributeLayerSharedPtr& rAttrLayer ) override;
virtual void end() override; virtual void end() override;
@@ -116,8 +115,7 @@ ClippingAnimation::~ClippingAnimation()
} }
} }
void ClippingAnimation::prefetch( const AnimatableShapeSharedPtr&, void ClippingAnimation::prefetch()
const ShapeAttributeLayerSharedPtr& )
{ {
} }

View File

@@ -169,8 +169,7 @@ void SlideChangeBase::renderBitmap(
pSlideBitmap->draw( pDevicePixelCanvas ); pSlideBitmap->draw( pDevicePixelCanvas );
} }
void SlideChangeBase::prefetch( const AnimatableShapeSharedPtr&, void SlideChangeBase::prefetch()
const ShapeAttributeLayerSharedPtr& )
{ {
// we're a one-shot activity, and already finished // we're a one-shot activity, and already finished
if( mbFinished || mbPrefetched ) if( mbFinished || mbPrefetched )
@@ -186,14 +185,14 @@ void SlideChangeBase::prefetch( const AnimatableShapeSharedPtr&,
mbPrefetched = true; mbPrefetched = true;
} }
void SlideChangeBase::start( const AnimatableShapeSharedPtr& rShape, void SlideChangeBase::start( const AnimatableShapeSharedPtr& /*rShape*/,
const ShapeAttributeLayerSharedPtr& rLayer ) const ShapeAttributeLayerSharedPtr& /*rLayer*/ )
{ {
// we're a one-shot activity, and already finished // we're a one-shot activity, and already finished
if( mbFinished ) if( mbFinished )
return; return;
prefetch(rShape,rLayer); // no-op, if already done prefetch(); // no-op, if already done
// get the subclasses a chance to do any specific initialization before run // get the subclasses a chance to do any specific initialization before run
for ( ViewsVecT::const_iterator aCurr( beginViews() ), aEnd( endViews() ); aCurr != aEnd; ++aCurr ) for ( ViewsVecT::const_iterator aCurr( beginViews() ), aEnd( endViews() ); aCurr != aEnd; ++aCurr )

View File

@@ -57,8 +57,7 @@ public:
virtual double getUnderlyingValue() const override; virtual double getUnderlyingValue() const override;
// Animation // Animation
virtual void prefetch( const AnimatableShapeSharedPtr&, virtual void prefetch() override;
const ShapeAttributeLayerSharedPtr& ) override;
virtual void start( const AnimatableShapeSharedPtr&, virtual void start( const AnimatableShapeSharedPtr&,
const ShapeAttributeLayerSharedPtr& ) override; const ShapeAttributeLayerSharedPtr& ) override;
virtual void end() override; virtual void end() override;

View File

@@ -58,8 +58,7 @@ namespace slideshow
@param rAttrLayer @param rAttrLayer
Attribute layer to play the animation on. Attribute layer to play the animation on.
*/ */
virtual void prefetch( const AnimatableShapeSharedPtr& rShape, virtual void prefetch( ) = 0;
const ShapeAttributeLayerSharedPtr& rAttrLayer ) = 0;
/** Notify that the animation is about to begin. /** Notify that the animation is about to begin.