From 62b2e5c17e3e0d7ac42c2f160d96e04a42e75247 Mon Sep 17 00:00:00 2001 From: Inuyasha Date: Wed, 9 Mar 2016 01:29:58 -0800 Subject: [PATCH] Revert "Readded EvalMath to Lua." This partially reverts commit cfcd7ce0d3959bcce0e8e00cc504b1354451cb50. --- src/lua_baselib.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/lua_baselib.c b/src/lua_baselib.c index 640e9ac3b..807403389 100644 --- a/src/lua_baselib.c +++ b/src/lua_baselib.c @@ -85,14 +85,6 @@ static int lib_print(lua_State *L) return 0; } -static int lib_evalMath(lua_State *L) -{ - const char *word = luaL_checkstring(L, 1); - LUA_Deprecated(L, "EvalMath(string)", "_G[string]"); - lua_pushinteger(L, LUA_EvalMath(word)); - return 1; -} - // M_RANDOM ////////////// @@ -1911,7 +1903,6 @@ static int lib_gTicsToMilliseconds(lua_State *L) static luaL_Reg lib[] = { {"print", lib_print}, - {"EvalMath", lib_evalMath}, // m_random {"P_Random",lib_pRandom},