mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
multi: remove Curl_multi_dump
A debug-only function that is basically never used. Removed to ease the use of the singleuse script to detect non-static functions not used outside the file where it is defined. Closes #11931
This commit is contained in:
parent
72f0607488
commit
d850eea2d0
33
lib/multi.c
33
lib/multi.c
@ -3783,39 +3783,6 @@ bool Curl_is_in_callback(struct Curl_easy *easy)
|
|||||||
(easy->multi_easy && easy->multi_easy->in_callback));
|
(easy->multi_easy && easy->multi_easy->in_callback));
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUGBUILD
|
|
||||||
void Curl_multi_dump(struct Curl_multi *multi)
|
|
||||||
{
|
|
||||||
struct Curl_easy *data;
|
|
||||||
int i;
|
|
||||||
fprintf(stderr, "* Multi status: %d handles, %d alive\n",
|
|
||||||
multi->num_easy, multi->num_alive);
|
|
||||||
for(data = multi->easyp; data; data = data->next) {
|
|
||||||
if(data->mstate < MSTATE_COMPLETED) {
|
|
||||||
/* only display handles that are not completed */
|
|
||||||
fprintf(stderr, "handle %p, state %s, %d sockets\n",
|
|
||||||
(void *)data,
|
|
||||||
multi_statename[data->mstate], data->numsocks);
|
|
||||||
for(i = 0; i < data->numsocks; i++) {
|
|
||||||
curl_socket_t s = data->sockets[i];
|
|
||||||
struct Curl_sh_entry *entry = sh_getentry(&multi->sockhash, s);
|
|
||||||
|
|
||||||
fprintf(stderr, "%d ", (int)s);
|
|
||||||
if(!entry) {
|
|
||||||
fprintf(stderr, "INTERNAL CONFUSION\n");
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
fprintf(stderr, "[%s %s] ",
|
|
||||||
(entry->action&CURL_POLL_IN)?"RECVING":"",
|
|
||||||
(entry->action&CURL_POLL_OUT)?"SENDING":"");
|
|
||||||
}
|
|
||||||
if(data->numsocks)
|
|
||||||
fprintf(stderr, "\n");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
unsigned int Curl_multi_max_concurrent_streams(struct Curl_multi *multi)
|
unsigned int Curl_multi_max_concurrent_streams(struct Curl_multi *multi)
|
||||||
{
|
{
|
||||||
DEBUGASSERT(multi);
|
DEBUGASSERT(multi);
|
||||||
|
Loading…
Reference in New Issue
Block a user