diff -ru ./src/lua/lua_common.h ../rspamd-0.8.0.p/src/lua/lua_common.h --- ./src/lua/lua_common.h 2014-12-17 16:51:42.000000000 +0200 +++ ../rspamd-0.8.0.p/src/lua/lua_common.h 2015-01-09 14:25:09.696650229 +0200 @@ -25,21 +25,6 @@ lua_pushnumber (L, val); \ lua_settable (L, -3); -#if LUA_VERSION_NUM > 501 -static inline void -luaL_register (lua_State *L, const gchar *name, const struct luaL_reg *methods) -{ - if (name != NULL) { - lua_newtable (L); - } - luaL_setfuncs (L, methods, 0); - if (name != NULL) { - lua_pushvalue (L, -1); - lua_setglobal (L, name); - } -} -#endif - /* Interface definitions */ #define LUA_FUNCTION_DEF(class, name) static gint lua_ ## class ## _ ## name ( \ lua_State * L)