Skip to content

Commit

Permalink
mempool: remove stray boost::optional usage
Browse files Browse the repository at this point in the history
  • Loading branch information
kwvg committed Mar 25, 2024
1 parent bcd383c commit 081d8db
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/txmempool.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include <util/epochguard.h>
#include <util/hasher.h>

#include <boost/optional.hpp>
#include <boost/multi_index_container.hpp>
#include <boost/multi_index/hashed_index.hpp>
#include <boost/multi_index/ordered_index.hpp>
Expand Down Expand Up @@ -840,7 +839,7 @@ class CTxMemPool
return m_epoch.visited(it->m_epoch_marker);
}

bool visited(boost::optional<txiter> it) const EXCLUSIVE_LOCKS_REQUIRED(cs, m_epoch) {
bool visited(std::optional<txiter> it) const EXCLUSIVE_LOCKS_REQUIRED(cs, m_epoch) {
assert(m_epoch.guarded());
return !it || visited(*it);
}
Expand Down
1 change: 0 additions & 1 deletion test/lint/lint-includes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ EXPECTED_BOOST_INCLUDES=(
boost/multi_index/ordered_index.hpp
boost/multi_index/sequenced_index.hpp
boost/multi_index_container.hpp
boost/optional.hpp
boost/pool/pool_alloc.hpp
boost/process.hpp
boost/signals2/connection.hpp
Expand Down

0 comments on commit 081d8db

Please sign in to comment.