diff --git a/src/addrman_impl.h b/src/addrman_impl.h index 04d5fe3053..5e76f72342 100644 --- a/src/addrman_impl.h +++ b/src/addrman_impl.h @@ -142,7 +142,6 @@ public: const std::vector& GetAsmap() const; - friend class AddrManTest; friend class AddrManDeterministic; private: diff --git a/src/test/addrman_tests.cpp b/src/test/addrman_tests.cpp index 185af6154a..423a91aae3 100644 --- a/src/test/addrman_tests.cpp +++ b/src/test/addrman_tests.cpp @@ -22,32 +22,6 @@ using namespace std::literals; -class AddrManTest : public AddrMan -{ -public: - explicit AddrManTest(std::vector asmap = std::vector()) - : AddrMan(asmap, /*deterministic=*/true, /*consistency_check_ratio=*/100) - {} - - AddrInfo* Find(const CService& addr) - { - LOCK(m_impl->cs); - return m_impl->Find(addr); - } - - AddrInfo* Create(const CAddress& addr, const CNetAddr& addrSource, int* pnId) - { - LOCK(m_impl->cs); - return m_impl->Create(addr, addrSource, pnId); - } - - void Delete(int nId) - { - LOCK(m_impl->cs); - m_impl->Delete(nId); - } -}; - static CNetAddr ResolveIP(const std::string& ip) { CNetAddr addr;