diff options
author | Amiti Uttarwar <amiti@uttarwar.org> | 2023-01-13 14:23:38 -0800 |
---|---|---|
committer | Martin Zumsande <mzumsande@gmail.com> | 2023-01-26 18:11:13 -0500 |
commit | 80f39c99ef2d30e3e2d8dbc068d25cf92aa32344 (patch) | |
tree | 1950ae737086c50aaf42788b740e5886e5408ae4 /src/addrman_impl.h | |
parent | 4885d6f197736cb89fdfac250b280ec10829d903 (diff) |
addrman, refactor: combine two size functions
The functionality of the old size() is covered by the new Size()
when no arguments are specified, so this does not change behavior.
Co-authored-by: Martin Zumsande <mzumsande@gmail.com>
Diffstat (limited to 'src/addrman_impl.h')
-rw-r--r-- | src/addrman_impl.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/addrman_impl.h b/src/addrman_impl.h index f75cccb303..94fe81aca9 100644 --- a/src/addrman_impl.h +++ b/src/addrman_impl.h @@ -112,8 +112,6 @@ public: template <typename Stream> void Unserialize(Stream& s_) EXCLUSIVE_LOCKS_REQUIRED(!cs); - size_t size() const EXCLUSIVE_LOCKS_REQUIRED(!cs); - size_t Size(std::optional<Network> net, std::optional<bool> in_new) const EXCLUSIVE_LOCKS_REQUIRED(!cs); bool Add(const std::vector<CAddress>& vAddr, const CNetAddr& source, std::chrono::seconds time_penalty) |