Remove Lua 5.0 compatibility defines.

Suggested by François Perrad.
This commit is contained in:
Mike Pall
2017-03-17 12:07:21 +01:00
parent d3e36e7920
commit de5568e0ea
3 changed files with 0 additions and 12 deletions

View File

@@ -221,10 +221,6 @@ LUALIB_API int luaopen_math(lua_State *L)
rs = (RandomState *)lua_newuserdata(L, sizeof(RandomState));
rs->valid = 0; /* Use lazy initialization to save some time on startup. */
LJ_LIB_REG(L, LUA_MATHLIBNAME, math);
#if defined(LUA_COMPAT_MOD) && !LJ_52
lua_getfield(L, -1, "fmod");
lua_setfield(L, -2, "mod");
#endif
return 1;
}