From b62630d31d301300dc6344985553f1473bdc7282 Mon Sep 17 00:00:00 2001 From: Nicolas Favre-Felix Date: Fri, 31 Dec 2010 17:01:26 +0100 Subject: [PATCH] Hiredis update removes the need for this. --- cmd.c | 1 - formats/json.c | 6 ------ 2 files changed, 7 deletions(-) diff --git a/cmd.c b/cmd.c index 29aed41..aa5d30d 100644 --- a/cmd.c +++ b/cmd.c @@ -40,7 +40,6 @@ struct pubsub_client { struct evhttp_request *rq; }; -void __redisAsyncDisconnect(redisAsyncContext *ac); void on_http_disconnect(struct evhttp_connection *evcon, void *ctx) { struct pubsub_client *ps = ctx; diff --git a/formats/json.c b/formats/json.c index 5457bf5..249400d 100644 --- a/formats/json.c +++ b/formats/json.c @@ -44,14 +44,8 @@ json_reply(redisAsyncContext *c, void *r, void *privdata) { evhttp_add_header(cmd->rq->output_headers, "Content-Type", "application/json"); if(cmd_is_subscribe(cmd)) { - redisCallback cb; free_cmd = 0; - /* reinstall callback */ - cb.fn = json_reply; - cb.privdata = privdata; - __redisPushCallback(&c->replies, &cb); - /* start streaming */ if(cmd->started_responding == 0) { cmd->started_responding = 1;