aboutsummaryrefslogtreecommitdiff
path: root/lib/telnet.c
diff options
context:
space:
mode:
authorMarcel Raad <raad@teamviewer.com>2017-04-25 08:36:13 +0200
committerMarcel Raad <raad@teamviewer.com>2017-04-26 10:01:53 +0200
commitb85142164228abe15d6ca20a244ffb849c700e6c (patch)
treed502a7a9fb8d72fdbc09630c970ef7dc9d2cb852 /lib/telnet.c
parent55c3c02e59d1daf31ec2097f93b8139ddb3fdeb6 (diff)
lib: remove unused code
This fixes the following clang warnings: macro is not used [-Wunused-macros] will never be executed [-Wunreachable-code] Closes https://github.com/curl/curl/pull/1448
Diffstat (limited to 'lib/telnet.c')
-rw-r--r--lib/telnet.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/telnet.c b/lib/telnet.c
index 5cceed258..bbdbb86ad 100644
--- a/lib/telnet.c
+++ b/lib/telnet.c
@@ -81,10 +81,12 @@
} WHILE_FALSE
#define CURL_SB_GET(x) ((*x->subpointer++)&0xff)
-#define CURL_SB_PEEK(x) ((*x->subpointer)&0xff)
-#define CURL_SB_EOF(x) (x->subpointer >= x->subend)
#define CURL_SB_LEN(x) (x->subend - x->subpointer)
+/* For posterity:
+#define CURL_SB_PEEK(x) ((*x->subpointer)&0xff)
+#define CURL_SB_EOF(x) (x->subpointer >= x->subend) */
+
#ifdef CURL_DISABLE_VERBOSE_STRINGS
#define printoption(a,b,c,d) Curl_nop_stmt
#endif