diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2021-11-29 12:09:33 +0100 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2022-02-11 15:21:52 +0100 |
commit | 36ee76d1afbb278500fc8aa01606ec933b52c17d (patch) | |
tree | d22e0576a21dea2c6ad9d2d88f65c2941a72e567 /src/netaddress.cpp | |
parent | d0abce9a50dd4f507e3a30348eabffb7552471d5 (diff) |
net: remove unused CNetAddr::GetHash()
Diffstat (limited to 'src/netaddress.cpp')
-rw-r--r-- | src/netaddress.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/netaddress.cpp b/src/netaddress.cpp index 4874b82eca..f7640329f8 100644 --- a/src/netaddress.cpp +++ b/src/netaddress.cpp @@ -833,14 +833,6 @@ std::vector<unsigned char> CNetAddr::GetAddrBytes() const return std::vector<unsigned char>(m_addr.begin(), m_addr.end()); } -uint64_t CNetAddr::GetHash() const -{ - uint256 hash = Hash(m_addr); - uint64_t nRet; - memcpy(&nRet, &hash, sizeof(nRet)); - return nRet; -} - // private extensions to enum Network, only returned by GetExtNetwork, // and only used in GetReachabilityFrom static const int NET_UNKNOWN = NET_MAX + 0; |