From 213d3e1b67ae30f78619b39206c3874855635a3b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 8 Sep 2005 05:42:31 +0000 Subject: [PATCH] unneeded --- stepmania/src/ActorUtil.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/stepmania/src/ActorUtil.cpp b/stepmania/src/ActorUtil.cpp index 50204fdeea..65b606e550 100644 --- a/stepmania/src/ActorUtil.cpp +++ b/stepmania/src/ActorUtil.cpp @@ -133,19 +133,7 @@ Actor* ActorUtil::LoadFromActorFile( const CString& sDir, const XNode* pNode ) LuaHelpers::RunAtExpressionS( sName ); CString s; - if( pChild->GetAttrValue( "Function", s ) ) - { - LuaExpression expr; - THEME->EvaluateString( s ); - expr.SetFromExpression( s ); - Lua *L = LUA->Get(); - expr.PushSelf( L ); - ASSERT( !lua_isnil(L, -1) ); - lua_call( L, 0, 1 ); // 0 args, 1 results - lua_setglobal( L, sName ); - LUA->Release(L); - } - else if( pChild->GetAttrValue( "Value", s ) ) + if( pChild->GetAttrValue( "Value", s ) ) { THEME->EvaluateString( s ); LUA->SetGlobalFromExpression( sName, s );