aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_redis.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-11-20 22:18:45 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-11-20 22:18:45 +0000
commitbc488cd48bb09799a6c8e9f2d08ac604a7a4c0c9 (patch)
tree8cc447adfab567b4929fce5c22424354d2d8aaa3 /src/lua/lua_redis.c
parent62409ad0943ef71827d941aa41666c477f30e49c (diff)
downloadrspamd-bc488cd48bb09799a6c8e9f2d08ac604a7a4c0c9.tar.gz
rspamd-bc488cd48bb09799a6c8e9f2d08ac604a7a4c0c9.zip
[Minor] Remove obsolete WITH_HIREDIS define
Diffstat (limited to 'src/lua/lua_redis.c')
-rw-r--r--src/lua/lua_redis.c62
1 files changed, 0 insertions, 62 deletions
diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c
index 6085f6328..46202a520 100644
--- a/src/lua/lua_redis.c
+++ b/src/lua/lua_redis.c
@@ -89,7 +89,6 @@ static const struct luaL_reg redislib_m[] = {
#define REDIS_RELEASE REF_RELEASE
#endif
-#ifdef WITH_HIREDIS
struct lua_redis_request_specific_userdata;
/**
* Struct for userdata representation
@@ -1612,67 +1611,6 @@ lua_redis_exec (lua_State *L)
}
}
}
-#else
-static int
-lua_redis_make_request (lua_State *L)
-{
- msg_warn ("rspamd is compiled with no redis support");
-
- lua_pushboolean (L, FALSE);
-
- return 1;
-}
-static int
-lua_redis_make_request_sync (lua_State *L)
-{
- msg_warn ("rspamd is compiled with no redis support");
-
- lua_pushboolean (L, FALSE);
-
- return 1;
-}
-static int
-lua_redis_connect (lua_State *L)
-{
- msg_warn ("rspamd is compiled with no redis support");
-
- lua_pushboolean (L, FALSE);
-
- return 1;
-}
-static int
-lua_redis_connect_sync (lua_State *L)
-{
- msg_warn ("rspamd is compiled with no redis support");
-
- lua_pushboolean (L, FALSE);
-
- return 1;
-}
-static int
-lua_redis_add_cmd (lua_State *L)
-{
- msg_warn ("rspamd is compiled with no redis support");
-
- lua_pushboolean (L, FALSE);
-
- return 1;
-}
-static int
-lua_redis_exec (lua_State *L)
-{
- msg_warn ("rspamd is compiled with no redis support");
-
- lua_pushboolean (L, FALSE);
-
- return 1;
-}
-static int
-lua_redis_gc (lua_State *L)
-{
- return 0;
-}
-#endif
static gint
lua_load_redis (lua_State * L)