Remove code related to unused observer (#1381)
This commit is contained in:
parent
753647b953
commit
b9fd61a631
3 changed files with 0 additions and 21 deletions
|
@ -1389,25 +1389,6 @@ TEST (node, no_voting)
|
|||
ASSERT_EQ (0, node1.stats.count (rai::stat::type::message, rai::stat::detail::confirm_ack, rai::stat::dir::in));
|
||||
}
|
||||
|
||||
TEST (node, start_observer)
|
||||
{
|
||||
rai::node_init init;
|
||||
auto service (boost::make_shared<boost::asio::io_service> ());
|
||||
rai::alarm alarm (*service);
|
||||
auto path (rai::unique_path ());
|
||||
rai::logging logging;
|
||||
logging.init (path);
|
||||
rai::work_pool work (std::numeric_limits<unsigned>::max (), nullptr);
|
||||
auto node (std::make_shared<rai::node> (init, *service, 0, path, alarm, logging, work));
|
||||
auto started (false);
|
||||
node->observers.started.add ([&started]() {
|
||||
started = true;
|
||||
});
|
||||
node->start ();
|
||||
ASSERT_TRUE (started);
|
||||
node->stop ();
|
||||
}
|
||||
|
||||
TEST (node, send_callback)
|
||||
{
|
||||
rai::system system (24000, 1);
|
||||
|
|
|
@ -1777,7 +1777,6 @@ void rai::node::start ()
|
|||
online_reps.recalculate_stake ();
|
||||
port_mapping.start ();
|
||||
add_initial_peers ();
|
||||
observers.started.notify ();
|
||||
}
|
||||
|
||||
void rai::node::stop ()
|
||||
|
|
|
@ -334,7 +334,6 @@ public:
|
|||
rai::observer_set<rai::account const &, bool> account_balance;
|
||||
rai::observer_set<rai::endpoint const &> endpoint;
|
||||
rai::observer_set<> disconnect;
|
||||
rai::observer_set<> started;
|
||||
};
|
||||
class vote_processor
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue