From f0e5efb82493f7a14580335ce719d5be81c8713e Mon Sep 17 00:00:00 2001 From: Martin Zumsande Date: Sun, 12 Dec 2021 23:18:56 +0000 Subject: [PATCH] test: Remove unused AddrManTest class --- src/addrman_impl.h | 1 - src/test/addrman_tests.cpp | 26 -------------------------- 2 files changed, 27 deletions(-) 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;