aboutsummaryrefslogtreecommitdiff
path: root/src/netaddress.cpp
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2021-11-29 12:09:33 +0100
committerVasil Dimov <vd@FreeBSD.org>2022-02-11 15:21:52 +0100
commit36ee76d1afbb278500fc8aa01606ec933b52c17d (patch)
treed22e0576a21dea2c6ad9d2d88f65c2941a72e567 /src/netaddress.cpp
parentd0abce9a50dd4f507e3a30348eabffb7552471d5 (diff)
net: remove unused CNetAddr::GetHash()
Diffstat (limited to 'src/netaddress.cpp')
-rw-r--r--src/netaddress.cpp8
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;