diff --git a/stepmania/src/Actor.cpp b/stepmania/src/Actor.cpp index a6e52919e9..95dc988db3 100644 --- a/stepmania/src/Actor.cpp +++ b/stepmania/src/Actor.cpp @@ -297,19 +297,6 @@ void Actor::LoadFromNode( const XNode* pNode ) PlayCommand( "Init" ); } -/* Like RTTI: return true if this actor is an sType (or derived from sType). - * This uses the Lua binding check, so only works on bound types. */ -bool Actor::IsType( const RString &sType ) -{ - Lua *L = LUA->Get(); - this->PushSelf( L ); - bool bRet = LuaBinding::CheckLuaObjectType( L, lua_gettop(L), sType, false ); - lua_pop( L, 1 ); - LUA->Release( L ); - - return bRet; -} - void Actor::Draw() { if( !m_bVisible ) diff --git a/stepmania/src/Actor.h b/stepmania/src/Actor.h index 6c9ddcf462..c6b6db5de7 100644 --- a/stepmania/src/Actor.h +++ b/stepmania/src/Actor.h @@ -59,7 +59,6 @@ public: virtual Actor *Copy() const; virtual void InitState(); virtual void LoadFromNode( const XNode* pNode ); - bool IsType( const RString &sType ); static void SetBGMTime( float fTime, float fBeat ); static void SetBGMLight( int iLightNumber, float fCabinetLights );