From 6327074f99fd873e1aff358f69858ef56eb40de1 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 23 Oct 2006 20:54:53 +0000 Subject: [PATCH] remove comment hacks --- stepmania/src/LuaManager.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/stepmania/src/LuaManager.cpp b/stepmania/src/LuaManager.cpp index f655a1dbef..13ce1c1680 100644 --- a/stepmania/src/LuaManager.cpp +++ b/stepmania/src/LuaManager.cpp @@ -458,12 +458,6 @@ XNode *LuaHelpers::GetLuaInformation() void LuaHelpers::PrepareExpression( RString &sInOut ) { - // HACK: Many metrics have "// foo" and "# foo" comments that Lua fails to parse. - // Replace them with Lua-style comments. - // XXX: "Foo=Func('#AABBCC')" and "Text=Adjust('// subtitle') aren't comments. - sInOut.Replace( "//", "--" ); - sInOut.Replace( "#", "--" ); - // Remove unary +, eg. "+50"; Lua doesn't support that. if( sInOut.size() >= 1 && sInOut[0] == '+' ) sInOut.erase( 0, 1 );