summaryrefslogtreecommitdiff
path: root/src/t_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/t_list.c')
-rw-r--r--src/t_list.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/t_list.c b/src/t_list.c
index 00ae1edca..c05bd1ae3 100644
--- a/src/t_list.c
+++ b/src/t_list.c
@@ -619,31 +619,6 @@ void lremCommand(redisClient *c) {
if (removed) touchWatchedKey(c->db,c->argv[1]);
}
-void rewriteClientCommandVector(redisClient *c, int argc, ...) {
- va_list ap;
- int j;
- robj **argv; /* The new argument vector */
-
- argv = zmalloc(sizeof(robj*)*argc);
- va_start(ap,argc);
- for (j = 0; j < argc; j++) {
- robj *a;
-
- a = va_arg(ap, robj*);
- argv[j] = a;
- incrRefCount(a);
- }
- /* We free the objects in the original vector at the end, so we are
- * sure that if the same objects are reused in the new vector the
- * refcount gets incremented before it gets decremented. */
- for (j = 0; j < c->argc; j++) decrRefCount(c->argv[j]);
- zfree(c->argv);
- /* Replace argv and argc with our new versions. */
- c->argv = argv;
- c->argc = argc;
- va_end(ap);
-}
-
/* This is the semantic of this command:
* RPOPLPUSH srclist dstlist:
* IF LLEN(srclist) > 0