ngtcp2: remove the unused Curl_conn_is_ngtcp2 function

Closes #19725
This commit is contained in:
Daniel Stenberg 2025-11-27 14:19:34 +01:00
parent a59a3cc7f1
commit 1e048e932a
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 0 additions and 20 deletions

View file

@ -2880,20 +2880,4 @@ out:
return result;
}
bool Curl_conn_is_ngtcp2(const struct Curl_easy *data,
const struct connectdata *conn,
int sockindex)
{
struct Curl_cfilter *cf = conn ? conn->cfilter[sockindex] : NULL;
(void)data;
for(; cf; cf = cf->next) {
if(cf->cft == &Curl_cft_http3)
return TRUE;
if(cf->cft->flags & CF_TYPE_IP_CONNECT)
return FALSE;
}
return FALSE;
}
#endif

View file

@ -55,10 +55,6 @@ CURLcode Curl_cf_ngtcp2_create(struct Curl_cfilter **pcf,
struct Curl_easy *data,
struct connectdata *conn,
const struct Curl_addrinfo *ai);
bool Curl_conn_is_ngtcp2(const struct Curl_easy *data,
const struct connectdata *conn,
int sockindex);
#endif
#endif /* HEADER_CURL_VQUIC_CURL_NGTCP2_H */