Commit c2d6da34 authored by hybrid's avatar hybrid

Remove unused destructors.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2307 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 1d8adb3f
......@@ -30,20 +30,16 @@ namespace scene
class ISceneNodeAnimator : public io::IAttributeExchangingObject, public IEventReceiver
{
public:
//! Destructor
virtual ~ISceneNodeAnimator() {}
//! Animates a scene node.
/** \param node Node to animate.
\param timeMs Current time in milli seconds. */
virtual void animateNode(ISceneNode* node, u32 timeMs) = 0;
virtual void animateNode(ISceneNode* node, u32 timeMs) =0;
//! Creates a clone of this animator.
/** Please note that you will have to drop
(IReferenceCounted::drop()) the returned pointer after calling
this. */
virtual ISceneNodeAnimator* createClone(ISceneNode* node, ISceneManager* newManager=0) = 0;
(IReferenceCounted::drop()) the returned pointer after calling this. */
virtual ISceneNodeAnimator* createClone(ISceneNode* node,
ISceneManager* newManager=0) =0;
//! Returns true if this animator receives events.
/** When attached to an active camera, this animator will be
......@@ -67,7 +63,7 @@ namespace scene
//! Returns if the animator has finished.
/** This is only valid for non-looping animators with a discrete end state.
\return true if the animator has finished, false if it is still running. */
\return true if the animator has finished, false if it is still running. */
virtual bool hasFinished(void) const
{
return false;
......
......@@ -21,14 +21,6 @@ CSceneNodeAnimatorDelete::CSceneNodeAnimatorDelete(ISceneManager* manager, u32 t
}
//! destructor
CSceneNodeAnimatorDelete::~CSceneNodeAnimatorDelete()
{
}
//! animates a scene node
void CSceneNodeAnimatorDelete::animateNode(ISceneNode* node, u32 timeMs)
{
......@@ -44,6 +36,7 @@ void CSceneNodeAnimatorDelete::animateNode(ISceneNode* node, u32 timeMs)
}
}
ISceneNodeAnimator* CSceneNodeAnimatorDelete::createClone(ISceneNode* node, ISceneManager* newManager)
{
CSceneNodeAnimatorDelete * newAnimator =
......@@ -52,6 +45,7 @@ ISceneNodeAnimator* CSceneNodeAnimatorDelete::createClone(ISceneNode* node, ISce
return newAnimator;
}
} // end namespace scene
} // end namespace irr
......@@ -18,9 +18,6 @@ namespace scene
//! constructor
CSceneNodeAnimatorDelete(ISceneManager* manager, u32 when);
//! destructor
virtual ~CSceneNodeAnimatorDelete();
//! animates a scene node
virtual void animateNode(ISceneNode* node, u32 timeMs);
......
......@@ -9,11 +9,13 @@ namespace irr
namespace scene
{
//! constructor
CSceneNodeAnimatorFlyCircle::CSceneNodeAnimatorFlyCircle(u32 time, const core::vector3df& center, f32 radius,
f32 speed, const core::vector3df& direction,
f32 radiusEllipsoid)
: Center(center), Direction(direction), Radius(radius), RadiusEllipsoid (radiusEllipsoid), Speed(speed), StartTime(time)
CSceneNodeAnimatorFlyCircle::CSceneNodeAnimatorFlyCircle(u32 time,
const core::vector3df& center, f32 radius, f32 speed,
const core::vector3df& direction, f32 radiusEllipsoid)
: Center(center), Direction(direction), Radius(radius),
RadiusEllipsoid(radiusEllipsoid), Speed(speed), StartTime(time)
{
#ifdef _DEBUG
setDebugName("CSceneNodeAnimatorFlyCircle");
......@@ -83,6 +85,7 @@ void CSceneNodeAnimatorFlyCircle::deserializeAttributes(io::IAttributes* in, io:
init();
}
ISceneNodeAnimator* CSceneNodeAnimatorFlyCircle::createClone(ISceneNode* node, ISceneManager* newManager)
{
CSceneNodeAnimatorFlyCircle * newAnimator =
......@@ -91,6 +94,7 @@ ISceneNodeAnimator* CSceneNodeAnimatorFlyCircle::createClone(ISceneNode* node, I
return newAnimator;
}
} // end namespace scene
} // end namespace irr
......@@ -36,14 +36,6 @@ void CSceneNodeAnimatorFlyStraight::recalculateIntermediateValues()
}
//! destructor
CSceneNodeAnimatorFlyStraight::~CSceneNodeAnimatorFlyStraight()
{
}
//! animates a scene node
void CSceneNodeAnimatorFlyStraight::animateNode(ISceneNode* node, u32 timeMs)
{
......@@ -101,6 +93,7 @@ void CSceneNodeAnimatorFlyStraight::deserializeAttributes(io::IAttributes* in, i
recalculateIntermediateValues();
}
ISceneNodeAnimator* CSceneNodeAnimatorFlyStraight::createClone(ISceneNode* node, ISceneManager* newManager)
{
CSceneNodeAnimatorFlyStraight * newAnimator =
......@@ -109,6 +102,7 @@ ISceneNodeAnimator* CSceneNodeAnimatorFlyStraight::createClone(ISceneNode* node,
return newAnimator;
}
} // end namespace scene
} // end namespace irr
......@@ -21,9 +21,6 @@ namespace scene
u32 timeForWay,
bool loop, u32 now, bool pingpong);
//! destructor
virtual ~CSceneNodeAnimatorFlyStraight();
//! animates a scene node
virtual void animateNode(ISceneNode* node, u32 timeMs);
......@@ -38,8 +35,7 @@ namespace scene
//! Creates a clone of this animator.
/** Please note that you will have to drop
(IReferenceCounted::drop()) the returned pointer after calling
this. */
(IReferenceCounted::drop()) the returned pointer after calling this. */
virtual ISceneNodeAnimator* createClone(ISceneNode* node, ISceneManager* newManager=0);
private:
......
......@@ -9,6 +9,7 @@ namespace irr
namespace scene
{
//! constructor
CSceneNodeAnimatorFollowSpline::CSceneNodeAnimatorFollowSpline(u32 time,
const core::array<core::vector3df>& points, f32 speed,
......@@ -121,6 +122,7 @@ void CSceneNodeAnimatorFollowSpline::deserializeAttributes(io::IAttributes* in,
}
}
ISceneNodeAnimator* CSceneNodeAnimatorFollowSpline::createClone(ISceneNode* node, ISceneManager* newManager)
{
CSceneNodeAnimatorFollowSpline * newAnimator =
......@@ -129,6 +131,7 @@ ISceneNodeAnimator* CSceneNodeAnimatorFollowSpline::createClone(ISceneNode* node
return newAnimator;
}
} // end namespace scene
} // end namespace irr
......@@ -9,6 +9,7 @@ namespace irr
namespace scene
{
//! constructor
CSceneNodeAnimatorRotation::CSceneNodeAnimatorRotation(u32 time, const core::vector3df& rotation)
: Rotation(rotation), StartTime(time)
......
......@@ -32,8 +32,7 @@ namespace scene
//! Creates a clone of this animator.
/** Please note that you will have to drop
(IReferenceCounted::drop()) the returned pointer after calling
this. */
(IReferenceCounted::drop()) the returned pointer after calling this. */
virtual ISceneNodeAnimator* createClone(ISceneNode* node, ISceneManager* newManager=0);
private:
......
......@@ -33,7 +33,6 @@ CSceneNodeAnimatorTexture::CSceneNodeAnimatorTexture(const core::array<video::IT
}
//! destructor
CSceneNodeAnimatorTexture::~CSceneNodeAnimatorTexture()
{
......@@ -41,7 +40,6 @@ CSceneNodeAnimatorTexture::~CSceneNodeAnimatorTexture()
}
void CSceneNodeAnimatorTexture::clearTextures()
{
for (u32 i=0; i<Textures.size(); ++i)
......@@ -50,7 +48,6 @@ void CSceneNodeAnimatorTexture::clearTextures()
}
//! animates a scene node
void CSceneNodeAnimatorTexture::animateNode(ISceneNode* node, u32 timeMs)
{
......@@ -100,6 +97,7 @@ void CSceneNodeAnimatorTexture::serializeAttributes(io::IAttributes* out, io::SA
}
}
//! Reads attributes of the scene node animator.
void CSceneNodeAnimatorTexture::deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options)
{
......@@ -127,6 +125,7 @@ void CSceneNodeAnimatorTexture::deserializeAttributes(io::IAttributes* in, io::S
}
}
ISceneNodeAnimator* CSceneNodeAnimatorTexture::createClone(ISceneNode* node, ISceneManager* newManager)
{
CSceneNodeAnimatorTexture * newAnimator =
......@@ -135,6 +134,7 @@ ISceneNodeAnimator* CSceneNodeAnimatorTexture::createClone(ISceneNode* node, ISc
return newAnimator;
}
} // end namespace scene
} // end namespace irr
......@@ -20,12 +20,6 @@ namespace scene
ISceneNodeAnimatorFinishing(u32 finishTime)
: FinishTime(finishTime), HasFinished(false) { }
//! destructor
virtual ~ISceneNodeAnimatorFinishing() { }
//! This is a pure virtual class, so it can't be cloned directly.
virtual ISceneNodeAnimator* createClone(ISceneNode* node, ISceneManager* newManager=0) = 0;
virtual bool hasFinished(void) const { return HasFinished; }
protected:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment