mirror of
https://github.com/curl/curl.git
synced 2026-01-18 17:21:26 +01:00
hostip6: remove debug-only code
Introduced in 021e786c71. Not used these days.
Closes #20334
This commit is contained in:
@@ -52,23 +52,6 @@
|
||||
|
||||
#ifdef CURLRES_SYNCH
|
||||
|
||||
#ifdef DEBUG_ADDRINFO
|
||||
static void dump_addrinfo(const struct Curl_addrinfo *ai)
|
||||
{
|
||||
curl_mprintf("dump_addrinfo:\n");
|
||||
for(; ai; ai = ai->ai_next) {
|
||||
char buf[INET6_ADDRSTRLEN];
|
||||
curl_mprintf(" fam %2d, CNAME %s, ",
|
||||
ai->ai_family,
|
||||
ai->ai_canonname ? ai->ai_canonname : "<none>");
|
||||
Curl_printable_address(ai, buf, sizeof(buf));
|
||||
curl_mprintf("%s\n", buf);
|
||||
}
|
||||
}
|
||||
#else
|
||||
#define dump_addrinfo(x) Curl_nop_stmt
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Curl_sync_getaddrinfo() when built IPv6-enabled (non-threading and
|
||||
* non-ares version).
|
||||
@@ -130,8 +113,6 @@ struct Curl_addrinfo *Curl_sync_getaddrinfo(struct Curl_easy *data,
|
||||
Curl_addrinfo_set_port(res, port);
|
||||
}
|
||||
|
||||
dump_addrinfo(res);
|
||||
|
||||
return res;
|
||||
}
|
||||
#endif /* CURLRES_SYNCH */
|
||||
|
||||
Reference in New Issue
Block a user