mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
test: Remove unused AddrManTest class
This commit is contained in:
parent
b696d7870b
commit
f0e5efb824
2 changed files with 0 additions and 27 deletions
|
@ -142,7 +142,6 @@ public:
|
|||
|
||||
const std::vector<bool>& GetAsmap() const;
|
||||
|
||||
friend class AddrManTest;
|
||||
friend class AddrManDeterministic;
|
||||
|
||||
private:
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue