File tree 3 files changed +0
-10
lines changed
3 files changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -833,14 +833,6 @@ std::vector<unsigned char> CNetAddr::GetAddrBytes() const
833
833
return std::vector<unsigned char >(m_addr.begin (), m_addr.end ());
834
834
}
835
835
836
- uint64_t CNetAddr::GetHash () const
837
- {
838
- uint256 hash = Hash (m_addr);
839
- uint64_t nRet;
840
- memcpy (&nRet, &hash, sizeof (nRet));
841
- return nRet;
842
- }
843
-
844
836
// private extensions to enum Network, only returned by GetExtNetwork,
845
837
// and only used in GetReachabilityFrom
846
838
static const int NET_UNKNOWN = NET_MAX + 0 ;
Original file line number Diff line number Diff line change @@ -194,7 +194,6 @@ class CNetAddr
194
194
enum Network GetNetwork () const ;
195
195
std::string ToString () const ;
196
196
std::string ToStringIP () const ;
197
- uint64_t GetHash () const ;
198
197
bool GetInAddr (struct in_addr * pipv4Addr) const ;
199
198
Network GetNetClass () const ;
200
199
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ FUZZ_TARGET(netaddress)
16
16
FuzzedDataProvider fuzzed_data_provider (buffer.data (), buffer.size ());
17
17
18
18
const CNetAddr net_addr = ConsumeNetAddr (fuzzed_data_provider);
19
- (void )net_addr.GetHash ();
20
19
(void )net_addr.GetNetClass ();
21
20
if (net_addr.GetNetwork () == Network::NET_IPV4) {
22
21
assert (net_addr.IsIPv4 ());
You can’t perform that action at this time.
0 commit comments