diff options
author | Amiti Uttarwar <amiti@uttarwar.org> | 2021-09-21 18:43:11 -0600 |
---|---|---|
committer | Martin Zumsande <mzumsande@gmail.com> | 2021-12-28 17:26:24 +0100 |
commit | 5b7aac34f2363822c3a1cfafda8ffc9528905058 (patch) | |
tree | 7b8dd25db47d7b13a973e2e35afd24d31d592bbf /src/test/addrman_tests.cpp | |
parent | 2ba1e74e59a325ca6cb140757067dd5e0c7c249b (diff) |
test: delete unused GetBucketAndEntry function
Diffstat (limited to 'src/test/addrman_tests.cpp')
-rw-r--r-- | src/test/addrman_tests.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
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<int, int> 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<int, int>(bucket, entry); - } - } - } - return std::pair<int, int>(-1, -1); - } - // Simulates connection failure so that we can test eviction of offline nodes void SimConnFail(const CService& addr) { |