diff options
author | Martin Zumsande <mzumsande@gmail.com> | 2021-12-12 23:18:56 +0000 |
---|---|---|
committer | Martin Zumsande <mzumsande@gmail.com> | 2021-12-28 21:54:51 +0100 |
commit | f0e5efb82493f7a14580335ce719d5be81c8713e (patch) | |
tree | 51f419ff0ee3a363b6cb0c4d347bb38103b066f5 /src | |
parent | b696d7870b29232057600df5ddd8351888253b95 (diff) | |
download | bitcoin-f0e5efb82493f7a14580335ce719d5be81c8713e.tar.xz |
test: Remove unused AddrManTest class
Diffstat (limited to 'src')
-rw-r--r-- | src/addrman_impl.h | 1 | ||||
-rw-r--r-- | src/test/addrman_tests.cpp | 26 |
2 files changed, 0 insertions, 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<bool>& 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<bool> asmap = std::vector<bool>()) - : 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; |