@@ -210,12 +210,6 @@ typedef enum {
210210 REDIS_PROCESS_RESPONSE_CLOSURE(function, NULL) \
211211}
212212
213- /* Clear redirection info */
214- #define REDIS_MOVED_CLEAR (redis_sock ) \
215- redis_sock->redir_slot = 0; \
216- redis_sock->redir_port = 0; \
217- redis_sock->redir_type = MOVED_NONE; \
218-
219213/* Process a command assuming our command where our command building
220214 * function is redis_<cmdname>_cmd */
221215#define REDIS_PROCESS_CMD (cmdname , resp_func ) \
@@ -264,21 +258,6 @@ typedef enum {
264258#define ZSTR_STRICMP_STATIC (zs , sstr ) \
265259 REDIS_STRICMP_STATIC(ZSTR_VAL(zs), ZSTR_LEN(zs), sstr)
266260
267- /* Extended SET argument detection */
268- #define ZSTR_IS_EX_ARG (zs ) ZSTR_STRICMP_STATIC(zs, "EX")
269- #define ZSTR_IS_PX_ARG (zs ) ZSTR_STRICMP_STATIC(zs, "PX")
270- #define ZSTR_IS_NX_ARG (zs ) ZSTR_STRICMP_STATIC(zs, "NX")
271- #define ZSTR_IS_XX_ARG (zs ) ZSTR_STRICMP_STATIC(zs, "XX")
272-
273- #define ZVAL_IS_NX_XX_ARG (zv ) (ZVAL_STRICMP_STATIC(zv, "NX") || ZVAL_STRICMP_STATIC(zv, "XX"))
274- #define ZSTR_IS_EX_PX_ARG (a ) (ZSTR_IS_EX_ARG(a) || ZSTR_IS_PX_ARG(a))
275-
276- /* Given a string and length, validate a zRangeByLex argument. The semantics
277- * here are that the argument must start with '(' or '[' or be just the char
278- * '+' or '-' */
279- #define IS_LEX_ARG (s ,l ) \
280- (l>0 && (*s=='(' || *s=='[' || (l==1 && (*s=='+' || *s=='-'))))
281-
282261#define REDIS_ENABLE_MODE (redis_sock , m ) (redis_sock->mode |= m)
283262#define REDIS_DISABLE_MODE (redis_sock , m ) (redis_sock->mode &= ~m)
284263
0 commit comments