diff options
author | Mike Pall <mike> | 2017-03-17 12:07:21 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2017-03-17 12:07:21 +0100 |
commit | de5568e0eaf22d2c7d58c2cbd9060460abc4ff2f (patch) | |
tree | 6c043ae650ae80d96cb7c93d91e0033d5168a006 /src/lib_string.c | |
parent | d3e36e7920c641410dfcdf1fc6c10069fd3192a6 (diff) | |
download | luajit-de5568e0eaf22d2c7d58c2cbd9060460abc4ff2f.tar.gz luajit-de5568e0eaf22d2c7d58c2cbd9060460abc4ff2f.tar.bz2 luajit-de5568e0eaf22d2c7d58c2cbd9060460abc4ff2f.zip |
Remove Lua 5.0 compatibility defines.
Suggested by François Perrad.
Diffstat (limited to 'src/lib_string.c')
-rw-r--r-- | src/lib_string.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lib_string.c b/src/lib_string.c index c7f37bc7..76b0730a 100644 --- a/src/lib_string.c +++ b/src/lib_string.c | |||
@@ -737,10 +737,6 @@ LUALIB_API int luaopen_string(lua_State *L) | |||
737 | GCtab *mt; | 737 | GCtab *mt; |
738 | global_State *g; | 738 | global_State *g; |
739 | LJ_LIB_REG(L, LUA_STRLIBNAME, string); | 739 | LJ_LIB_REG(L, LUA_STRLIBNAME, string); |
740 | #if defined(LUA_COMPAT_GFIND) && !LJ_52 | ||
741 | lua_getfield(L, -1, "gmatch"); | ||
742 | lua_setfield(L, -2, "gfind"); | ||
743 | #endif | ||
744 | mt = lj_tab_new(L, 0, 1); | 740 | mt = lj_tab_new(L, 0, 1); |
745 | /* NOBARRIER: basemt is a GC root. */ | 741 | /* NOBARRIER: basemt is a GC root. */ |
746 | g = G(L); | 742 | g = G(L); |