aboutsummaryrefslogtreecommitdiff
path: root/src/netaddress.h
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/netaddress.h
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/netaddress.h')
-rw-r--r--src/netaddress.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/netaddress.h b/src/netaddress.h
index 60fb34d9d2..8fb34194cb 100644
--- a/src/netaddress.h
+++ b/src/netaddress.h
@@ -535,7 +535,6 @@ public:
friend bool operator!=(const CService& a, const CService& b) { return !(a == b); }
friend bool operator<(const CService& a, const CService& b);
std::vector<unsigned char> GetKey() const;
- std::string ToString() const;
std::string ToStringPort() const;
std::string ToStringAddrPort() const;