]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ngtcp2: remove the unused Curl_conn_is_ngtcp2 function
authorDaniel Stenberg <daniel@haxx.se>
Thu, 27 Nov 2025 13:19:34 +0000 (14:19 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 27 Nov 2025 15:00:20 +0000 (16:00 +0100)
Closes #19725

lib/vquic/curl_ngtcp2.c
lib/vquic/curl_ngtcp2.h

index de767f28dc04cd3d074f6a7940bc324dc765737e..22ea0e3ef493b6439e52fdc7d7617c5fcb1f456b 100644 (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
index 86753a3a6ba8547642db2b4f485f369cd31b3afe..7933e924e1c70a3640cf4ee595c6eecae51bdc38 100644 (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 */