diff --git a/src/test/addrman_tests.cpp b/src/test/addrman_tests.cpp index d372c024d4..4745d29f9f 100644 --- a/src/test/addrman_tests.cpp +++ b/src/test/addrman_tests.cpp @@ -47,21 +47,6 @@ public: m_impl->Delete(nId); } - // Used to test deserialization - std::pair GetBucketAndEntry(const CAddress& addr) - { - LOCK(m_impl->cs); - int nId = m_impl->mapAddr[addr]; - for (int bucket = 0; bucket < ADDRMAN_NEW_BUCKET_COUNT; ++bucket) { - for (int entry = 0; entry < ADDRMAN_BUCKET_SIZE; ++entry) { - if (nId == m_impl->vvNew[bucket][entry]) { - return std::pair(bucket, entry); - } - } - } - return std::pair(-1, -1); - } - // Simulates connection failure so that we can test eviction of offline nodes void SimConnFail(const CService& addr) {