aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_redis.c
diff options
context:
space:
mode:
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)