connect: reduce number of transportation providers

Use only the ones necessary - the ones that are built-in. Saves a few
bytes in the resulting code.

Closes #12438
This commit is contained in:
MAntoniak 2023-12-01 18:48:09 +01:00 committed by Daniel Stenberg
parent 56791f3e23
commit 0eda1f6c9f
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1129,8 +1129,12 @@ struct transport_provider transport_providers[] = {
#ifdef ENABLE_QUIC
{ TRNSPRT_QUIC, Curl_cf_quic_create },
#endif
#ifndef CURL_DISABLE_TFTP
{ TRNSPRT_UDP, Curl_cf_udp_create },
#endif
#ifdef USE_UNIX_SOCKETS
{ TRNSPRT_UNIX, Curl_cf_unix_create },
#endif
};
static cf_ip_connect_create *get_cf_create(int transport)