mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-11 08:07:33 +02:00
signals: remove boost::signals2 mentions in linters and docs
The documented example is no longer relevant, so remove it rather than updating it to mention btcsignals.
This commit is contained in:
@@ -1411,9 +1411,9 @@ communication:
|
||||
using TipChangedFn = std::function<void(int block_height, int64_t block_time)>;
|
||||
virtual std::unique_ptr<interfaces::Handler> handleTipChanged(TipChangedFn fn) = 0;
|
||||
|
||||
// Bad: returns boost connection specific to local process
|
||||
// Bad: returns btcsignals connection specific to local process
|
||||
using TipChangedFn = std::function<void(int block_height, int64_t block_time)>;
|
||||
virtual boost::signals2::scoped_connection connectTipChanged(TipChangedFn fn) = 0;
|
||||
virtual btcsignals::scoped_connection connectTipChanged(TipChangedFn fn) = 0;
|
||||
```
|
||||
|
||||
- Interface methods should not be overloaded.
|
||||
|
||||
@@ -30,9 +30,6 @@ EXPECTED_BOOST_INCLUDES = [
|
||||
"boost/multi_index/tag.hpp",
|
||||
"boost/multi_index_container.hpp",
|
||||
"boost/operators.hpp",
|
||||
"boost/signals2/connection.hpp",
|
||||
"boost/signals2/optional_last_value.hpp",
|
||||
"boost/signals2/signal.hpp",
|
||||
"boost/test/included/unit_test.hpp",
|
||||
"boost/test/unit_test.hpp",
|
||||
"boost/tuple/tuple.hpp",
|
||||
|
||||
Reference in New Issue
Block a user