aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/netaddress.cpp
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2022-07-15 14:13:39 +0200
committerVasil Dimov <vd@FreeBSD.org>2022-12-12 11:54:20 +0100
commit96c791dd20fea54c17d224000dee677bc158f66a (patch)
tree97fdcc0db13d7a7dd2b76040d2402e8c2e9b32a4 /src/test/fuzz/netaddress.cpp
parent944a9de08a00f8273e73cd28b40e46cc0eb0bad1 (diff)
downloadbitcoin-96c791dd20fea54c17d224000dee677bc158f66a.tar.xz
net: remove CService::ToString() use ToStringAddrPort() instead
Both methods do the same thing, so simplify to having just one. `ToString()` is too generic in this case and it is unclear what it does, given that there are similar methods: `ToStringAddr()` (inherited from `CNetAddr`), `ToStringPort()` and `ToStringAddrPort()`.
Diffstat (limited to 'src/test/fuzz/netaddress.cpp')
-rw-r--r--src/test/fuzz/netaddress.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/test/fuzz/netaddress.cpp b/src/test/fuzz/netaddress.cpp
index 3d7d3188a1..ad18b35637 100644
--- a/src/test/fuzz/netaddress.cpp
+++ b/src/test/fuzz/netaddress.cpp
@@ -79,7 +79,6 @@ FUZZ_TARGET(netaddress)
const CService service{net_addr, fuzzed_data_provider.ConsumeIntegral<uint16_t>()};
(void)service.GetKey();
(void)service.GetPort();
- (void)service.ToString();
(void)service.ToStringAddrPort();
(void)service.ToStringPort();
(void)CServiceHash()(service);