Skip to content

Commit

Permalink
Remove Inet DNSResolver (#10725)
Browse files Browse the repository at this point in the history
* Remove DNSResolver

#### Problem

`DNSResolver` is unused.

#### Change overview

Remove it.

#### Testing

CI.

* restyle
  • Loading branch information
kpschoedel authored Oct 20, 2021
1 parent 91cf677 commit 60b44c4
Show file tree
Hide file tree
Showing 30 changed files with 2 additions and 1,877 deletions.
1 change: 0 additions & 1 deletion config/ameba/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ mbedtls_target = "//mbedtls:mbedtls"
lwip_platform = "external"

chip_build_tests = true
chip_inet_config_enable_dns_resolver = false

chip_inet_config_enable_tcp_endpoint = true
chip_inet_config_enable_udp_endpoint = true
Expand Down
1 change: 0 additions & 1 deletion config/esp32/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ mbedtls_target = "//mbedtls:mbedtls"
lwip_platform = "external"

chip_build_tests = true
chip_inet_config_enable_dns_resolver = false

#Enabling this causes some error
#chip_inet_config_enable_tun_endpoint = false
Expand Down
1 change: 0 additions & 1 deletion config/mbed/chip-gn/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ chip_device_project_config_include = ""

chip_inet_config_enable_udp_endpoint = true
chip_inet_config_enable_tcp_endpoint = true
chip_inet_config_enable_dns_resolver = true

chip_custom_build_cflags = []

Expand Down
1 change: 0 additions & 1 deletion config/nrfconnect/chip-module/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ chip_gn_arg_bool ("chip_enable_nfc" CONFIG_CHIP_NFC_COMM
chip_gn_arg_bool ("chip_build_tests" CONFIG_CHIP_BUILD_TESTS)
chip_gn_arg_bool ("chip_monolithic_tests" CONFIG_CHIP_BUILD_TESTS)
chip_gn_arg_bool ("chip_inet_config_enable_tcp_endpoint" CONFIG_CHIP_BUILD_TESTS)
chip_gn_arg_bool ("chip_inet_config_enable_dns_resolver" CONFIG_CHIP_BUILD_TESTS)
chip_gn_arg_bool ("chip_build_libshell" CONFIG_CHIP_LIB_SHELL)
chip_gn_arg_bool ("chip_build_pw_rpc_lib" CONFIG_CHIP_PW_RPC)

Expand Down
1 change: 0 additions & 1 deletion config/qpg/chip-gn/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ chip_enable_nfc = false
chip_build_tests = false
chip_monolithic_tests = false
chip_inet_config_enable_tcp_endpoint = false
chip_inet_config_enable_dns_resolver = false
chip_build_libshell = false
qpg_ar = "arm-none-eabi-ar"
qpg_cc = "arm-none-eabi-gcc"
Expand Down
1 change: 0 additions & 1 deletion config/standalone/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@
# Options from standalone-chip.mk that differ from configure defaults. These
# options are used from examples/.
chip_build_tests = false
chip_inet_config_enable_dns_resolver = false
1 change: 0 additions & 1 deletion config/telink/chip-module/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ chip_gn_arg_bool ("chip_enable_openthread" CONFIG_NET_L2_OPENTH
chip_gn_arg_bool ("chip_inet_config_enable_ipv4" CONFIG_NET_IPV4)
chip_gn_arg_bool ("chip_build_tests" CONFIG_CHIP_BUILD_TESTS)
chip_gn_arg_bool ("chip_inet_config_enable_tcp_endpoint" CONFIG_CHIP_BUILD_TESTS)
chip_gn_arg_bool ("chip_inet_config_enable_dns_resolver" CONFIG_CHIP_BUILD_TESTS)
chip_gn_arg_bool ("chip_build_libshell" CONFIG_CHIP_LIB_SHELL)
chip_gn_arg_bool ("chip_build_pw_rpc_lib" CONFIG_CHIP_PW_RPC)

Expand Down
1 change: 0 additions & 1 deletion config/tizen/chip-gn/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ chip_device_platform = "tizen"
chip_build_tests = false

chip_inet_config_enable_raw_endpoint = false
chip_inet_config_enable_dns_resolver = false
8 changes: 0 additions & 8 deletions src/inet/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ buildconfig_header("inet_buildconfig") {
defines = [
"INET_CONFIG_TEST=${chip_build_tests}",
"INET_CONFIG_ENABLE_IPV4=${chip_inet_config_enable_ipv4}",
"INET_CONFIG_ENABLE_DNS_RESOLVER=${chip_inet_config_enable_dns_resolver}",
"INET_CONFIG_ENABLE_TCP_ENDPOINT=${chip_inet_config_enable_tcp_endpoint}",
"INET_CONFIG_ENABLE_UDP_ENDPOINT=${chip_inet_config_enable_udp_endpoint}",
"HAVE_LWIP_RAW_BIND_NETIF=true",
Expand Down Expand Up @@ -118,13 +117,6 @@ static_library("inet") {
]
}

if (chip_inet_config_enable_dns_resolver) {
sources += [
"DNSResolver.cpp",
"DNSResolver.h",
]
}

if (chip_with_nlfaultinjection) {
sources += [ "InetFaultInjection.cpp" ]
public_deps += [ "${nlfaultinjection_root}:nlfaultinjection" ]
Expand Down
Loading

0 comments on commit 60b44c4

Please sign in to comment.