summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Nunberg <mnunberg@haskalah.org>2018-01-09 06:57:17 -0500
committerMark Nunberg <mnunberg@haskalah.org>2019-02-20 09:10:10 -0500
commit4127e4488bcebceac59aefe6013e3f854b192394 (patch)
treef91ef920108649f4269f621f043de75da6470a17
parentbc2a8f372a9f073e2fc00c34ba11cb3cb671f252 (diff)
Don't add dead code for HIREDIS_NOSSL
We changed this to `HIREDIS_SSL`
-rw-r--r--async.c19
1 files changed, 4 insertions, 15 deletions
diff --git a/async.c b/async.c
index 5a14d45..db59036 100644
--- a/async.c
+++ b/async.c
@@ -525,10 +525,12 @@ static int __redisAsyncHandleConnect(redisAsyncContext *ac) {
}
}
-#ifndef HIREDIS_NOSSL
/**
* Handle SSL when socket becomes available for reading. This also handles
- * read-while-write and write-while-read
+ * read-while-write and write-while-read.
+ *
+ * These functions will not work properly unless `HIREDIS_SSL` is defined
+ * (however, they will compile)
*/
static void asyncSslRead(redisAsyncContext *ac) {
int rv;
@@ -592,19 +594,6 @@ static void asyncSslWrite(redisAsyncContext *ac) {
/* Always reschedule a read */
_EL_ADD_READ(ac);
}
-#else
-
-/* Just so we're able to compile */
-static void asyncSslRead(redisAsyncContext *ac) {
- abort();
- (void)ac;
-}
-static void asyncSslWrite(redisAsyncContext *ac) {
- abort();
- (void)ac;
-}
-
-#endif
/* This function should be called when the socket is readable.
* It processes all replies that can be read and executes their callbacks.