summaryrefslogtreecommitdiff
path: root/hiredis.c
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2011-04-21 14:37:29 +0200
committerPieter Noordhuis <pcnoordhuis@gmail.com>2011-04-21 14:37:29 +0200
commita9262322938d04226be2410aa20460a31d4a4a51 (patch)
tree488b363e8dfe285c4c6f7e71493d360fb2d684ad /hiredis.c
parent5ba49014da410b3e671c341469ac372d6a383822 (diff)
Reply object functions can be set by the user after creating the reader
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 7598e19..1f06d9f 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -542,16 +542,6 @@ redisReader *redisReplyReaderCreate(void) {
return r;
}
-/* Set the function set to build the reply. Returns REDIS_OK when there
- * is no temporary object and it can be set, REDIS_ERR otherwise. */
-int redisReplyReaderSetReplyObjectFunctions(redisReader *r, redisReplyObjectFunctions *fn) {
- if (r->reply == NULL) {
- r->fn = fn;
- return REDIS_OK;
- }
- return REDIS_ERR;
-}
-
void redisReplyReaderFree(redisReader *r) {
if (r->reply != NULL && r->fn && r->fn->freeObject)
r->fn->freeObject(r->reply);