]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-lua: Remove unused compatibility macros
authorJosef 'Jeff' Sipek <jeff.sipek@open-xchange.com>
Thu, 4 Mar 2021 21:38:50 +0000 (16:38 -0500)
committerjeff.sipek <jeff.sipek@open-xchange.com>
Wed, 10 Mar 2021 19:12:41 +0000 (19:12 +0000)
These are never used since all supported Lua versions define
LUA_VERSION_NUM.

src/lib-lua/dlua-script-private.h

index 551d8060602cd54a68d76876b32249ceb9734988..f14d221e9730b90fa617e952f38cb27415123500 100644 (file)
@@ -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)