aboutsummaryrefslogtreecommitdiff
path: root/lib/url.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/url.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/url.c')
-rw-r--r--lib/url.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/url.c b/lib/url.c
index 6795a9c8f..f5998d6b1 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -2935,8 +2935,7 @@ static void conn_reset_all_postponed_data(struct connectdata *conn)
conn_reset_postponed_data(conn, 1);
}
#else /* ! USE_RECV_BEFORE_SEND_WORKAROUND */
-/* Use "do-nothing" macros instead of functions when workaround not used */
-#define conn_reset_postponed_data(c,n) do {} WHILE_FALSE
+/* Use "do-nothing" macro instead of function when workaround not used */
#define conn_reset_all_postponed_data(c) do {} WHILE_FALSE
#endif /* ! USE_RECV_BEFORE_SEND_WORKAROUND */