Skip to content

Commit f0e5efb

Browse files
committed
test: Remove unused AddrManTest class
1 parent b696d78 commit f0e5efb

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

src/addrman_impl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ class AddrManImpl
142142

143143
const std::vector<bool>& GetAsmap() const;
144144

145-
friend class AddrManTest;
146145
friend class AddrManDeterministic;
147146

148147
private:

src/test/addrman_tests.cpp

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -22,32 +22,6 @@
2222

2323
using namespace std::literals;
2424

25-
class AddrManTest : public AddrMan
26-
{
27-
public:
28-
explicit AddrManTest(std::vector<bool> asmap = std::vector<bool>())
29-
: AddrMan(asmap, /*deterministic=*/true, /*consistency_check_ratio=*/100)
30-
{}
31-
32-
AddrInfo* Find(const CService& addr)
33-
{
34-
LOCK(m_impl->cs);
35-
return m_impl->Find(addr);
36-
}
37-
38-
AddrInfo* Create(const CAddress& addr, const CNetAddr& addrSource, int* pnId)
39-
{
40-
LOCK(m_impl->cs);
41-
return m_impl->Create(addr, addrSource, pnId);
42-
}
43-
44-
void Delete(int nId)
45-
{
46-
LOCK(m_impl->cs);
47-
m_impl->Delete(nId);
48-
}
49-
};
50-
5125
static CNetAddr ResolveIP(const std::string& ip)
5226
{
5327
CNetAddr addr;

0 commit comments

Comments
 (0)