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/test/addrman_tests.cpp | |
parent | b696d7870b29232057600df5ddd8351888253b95 (diff) | |
download | bitcoin-f0e5efb82493f7a14580335ce719d5be81c8713e.tar.xz |
test: Remove unused AddrManTest class
Diffstat (limited to 'src/test/addrman_tests.cpp')
-rw-r--r-- | src/test/addrman_tests.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
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; |