From bc488cd48bb09799a6c8e9f2d08ac604a7a4c0c9 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 20 Nov 2021 22:18:45 +0000 Subject: [Minor] Remove obsolete WITH_HIREDIS define --- src/lua/lua_redis.c | 62 ----------------------------------------------------- 1 file changed, 62 deletions(-) (limited to 'src/lua/lua_redis.c') 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) -- cgit v1.2.3