diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2011-04-21 14:34:03 +0200 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2011-04-21 14:34:03 +0200 |
commit | 5ba49014da410b3e671c341469ac372d6a383822 (patch) | |
tree | 7ea7dd4825943ce6bd6639dfaf0b84a54dc845a8 /hiredis.c | |
parent | 2002218981c4aa6ab8a55e9513962adc2268b657 (diff) |
Privdata can be set directly on the struct
Diffstat (limited to 'hiredis.c')
-rw-r--r-- | hiredis.c | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -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); |