aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-02-03 14:10:52 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-02-03 14:10:52 +0000
commit8f35dd59707be990cc078f1831762f020c8a373a (patch)
tree309fec22ea478d30abcd90b79c13626adcf8461b /src/lua
parent6a7407939e6772972112a4e6c3cc820b1e7c817d (diff)
downloadrspamd-8f35dd59707be990cc078f1831762f020c8a373a.tar.gz
rspamd-8f35dd59707be990cc078f1831762f020c8a373a.zip
[Minor] Remove obsoleted compat functions that are no longer used
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_common.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h
index 2fea11f4a..b782b3d37 100644
--- a/src/lua/lua_common.h
+++ b/src/lua/lua_common.h
@@ -69,20 +69,6 @@ static inline int lua_absindex (lua_State *L, int i) {
}
#endif
-static inline int lua_rawgetp (lua_State *L, int i, const void *p) {
- int abs_i = lua_absindex(L, i);
- lua_pushlightuserdata(L, (void*)p);
- lua_rawget(L, abs_i);
- return lua_type(L, -1);
-}
-
-static inline void lua_rawsetp (lua_State *L, int i, const void *p) {
- int abs_i = lua_absindex(L, i);
- luaL_checkstack(L, 1, "not enough stack slots");
- lua_pushlightuserdata(L, (void*)p);
- lua_insert(L, -2);
- lua_rawset(L, abs_i);
-}
#endif
/* Interface definitions */