From: Josef 'Jeff' Sipek Date: Thu, 4 Mar 2021 21:38:50 +0000 (-0500) Subject: lib-lua: Remove unused compatibility macros X-Git-Tag: 2.3.15~293 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1bcc5f4a730eafb663320c942ba541344c94a692;p=thirdparty%2Fdovecot%2Fcore.git lib-lua: Remove unused compatibility macros These are never used since all supported Lua versions define LUA_VERSION_NUM. --- diff --git a/src/lib-lua/dlua-script-private.h b/src/lib-lua/dlua-script-private.h index 551d806060..f14d221e97 100644 --- a/src/lib-lua/dlua-script-private.h +++ b/src/lib-lua/dlua-script-private.h @@ -6,12 +6,6 @@ #include "lauxlib.h" #include "dlua-compat.h" -#if !defined(LUA_VERSION_NUM) -#define lua_setfield(L, i, k) (lua_pushstring(L, k), lua_settable(L, i)) -#define lua_getref(L, ref) lua_rawgeti(L, LUA_REGISTRYINDEX, ref); -#define luaL_unref(L, ref) luaL_unref(L, LUA_REGISTRYINDEX, ref); -#endif - #if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502 #define luaL_newmetatable(L, tn) \ (luaL_newmetatable(L, tn) ? (lua_pushstring(L, tn), lua_setfield(L, -2, "__name"), 1) : 0)