File tree Expand file tree Collapse file tree 3 files changed +0
-10
lines changed Expand file tree Collapse file tree 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
833833 return std::vector<unsigned char >(m_addr.begin (), m_addr.end ());
834834}
835835
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-
844836// private extensions to enum Network, only returned by GetExtNetwork,
845837// and only used in GetReachabilityFrom
846838static const int NET_UNKNOWN = NET_MAX + 0 ;
Original file line number Diff line number Diff line change @@ -194,7 +194,6 @@ class CNetAddr
194194 enum Network GetNetwork () const ;
195195 std::string ToString () const ;
196196 std::string ToStringIP () const ;
197- uint64_t GetHash () const ;
198197 bool GetInAddr (struct in_addr * pipv4Addr) const ;
199198 Network GetNetClass () const ;
200199
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ FUZZ_TARGET(netaddress)
1616 FuzzedDataProvider fuzzed_data_provider (buffer.data (), buffer.size ());
1717
1818 const CNetAddr net_addr = ConsumeNetAddr (fuzzed_data_provider);
19- (void )net_addr.GetHash ();
2019 (void )net_addr.GetNetClass ();
2120 if (net_addr.GetNetwork () == Network::NET_IPV4) {
2221 assert (net_addr.IsIPv4 ());
You can’t perform that action at this time.
0 commit comments