diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2022-07-15 14:13:39 +0200 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2022-12-12 11:54:20 +0100 |
commit | 96c791dd20fea54c17d224000dee677bc158f66a (patch) | |
tree | 97fdcc0db13d7a7dd2b76040d2402e8c2e9b32a4 /src/netaddress.h | |
parent | 944a9de08a00f8273e73cd28b40e46cc0eb0bad1 (diff) | |
download | bitcoin-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.h | 1 |
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; |