summaryrefslogtreecommitdiff
path: root/hiredis.c
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2011-04-21 14:34:03 +0200
committerPieter Noordhuis <pcnoordhuis@gmail.com>2011-04-21 14:34:03 +0200
commit5ba49014da410b3e671c341469ac372d6a383822 (patch)
tree7ea7dd4825943ce6bd6639dfaf0b84a54dc845a8 /hiredis.c
parent2002218981c4aa6ab8a55e9513962adc2268b657 (diff)
Privdata can be set directly on the struct
Diffstat (limited to 'hiredis.c')
-rw-r--r--hiredis.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/hiredis.c b/hiredis.c
index 428678b..7598e19 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -552,16 +552,6 @@ int redisReplyReaderSetReplyObjectFunctions(redisReader *r, redisReplyObjectFunc
return REDIS_ERR;
}
-/* Set the private data field that is used in the read tasks. This argument can
- * be used to curry arbitrary data to the custom reply object functions. */
-int redisReplyReaderSetPrivdata(redisReader *r, void *privdata) {
- if (r->reply == NULL) {
- r->privdata = privdata;
- return REDIS_OK;
- }
- return REDIS_ERR;
-}
-
void redisReplyReaderFree(redisReader *r) {
if (r->reply != NULL && r->fn && r->fn->freeObject)
r->fn->freeObject(r->reply);