From a3ffee63b6ea2e41439fd917592384cb6a8d711c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 1 Aug 2006 20:32:16 +0000 Subject: [PATCH] remove GetCommandsLengthSeconds --- stepmania/src/Actor.cpp | 8 -------- stepmania/src/Actor.h | 3 --- 2 files changed, 11 deletions(-) diff --git a/stepmania/src/Actor.cpp b/stepmania/src/Actor.cpp index 683cec06a7..3e5fc1450c 100644 --- a/stepmania/src/Actor.cpp +++ b/stepmania/src/Actor.cpp @@ -1050,14 +1050,6 @@ void Actor::RunCommands( const LuaReference& cmds, Actor *pParent ) LUA->Release(L); } -float Actor::GetCommandsLengthSeconds( const LuaReference& cmds ) -{ - Actor temp; - temp.RunCommands(cmds); - - return temp.GetTweenTimeLeft(); -} - float Actor::GetTweenTimeLeft() const { float tot = 0; diff --git a/stepmania/src/Actor.h b/stepmania/src/Actor.h index 50312dd333..9cb9bac35b 100644 --- a/stepmania/src/Actor.h +++ b/stepmania/src/Actor.h @@ -341,9 +341,6 @@ public: // If we're a leaf, then execute this command. virtual void RunCommandsOnLeaves( const LuaReference& cmds, Actor *pParent = NULL ) { RunCommands(cmds,pParent); } - static float GetCommandsLengthSeconds( const LuaReference& cmds ); - static float GetCommandsLengthSeconds( const apActorCommands& cmds ) { return GetCommandsLengthSeconds( *cmds ); } // convenience - // // Messages //