File tree Expand file tree Collapse file tree 2 files changed +0
-32
lines changed Expand file tree Collapse file tree 2 files changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -595,21 +595,6 @@ void InterruptMapPort();
595
595
void StopMapPort ();
596
596
uint16_t GetListenPort ();
597
597
598
- struct CombinerAll
599
- {
600
- typedef bool result_type;
601
-
602
- template <typename I>
603
- bool operator ()(I first, I last) const
604
- {
605
- while (first != last) {
606
- if (!(*first)) return false ;
607
- ++first;
608
- }
609
- return true ;
610
- }
611
- };
612
-
613
598
/* *
614
599
* Interface for message handling
615
600
*/
Original file line number Diff line number Diff line change 9
9
10
10
#include < test/util/setup_common.h>
11
11
12
- #include < boost/signals2/signal.hpp>
13
12
#include < boost/test/unit_test.hpp>
14
13
15
14
BOOST_FIXTURE_TEST_SUITE (validation_tests, TestingSetup)
@@ -120,20 +119,4 @@ BOOST_AUTO_TEST_CASE(signet_parse_tests)
120
119
BOOST_CHECK (!CheckSignetBlockSolution (block, signet_params->GetConsensus ()));
121
120
}
122
121
123
- static bool ReturnFalse () { return false ; }
124
- static bool ReturnTrue () { return true ; }
125
-
126
- BOOST_AUTO_TEST_CASE (test_combiner_all)
127
- {
128
- boost::signals2::signal<bool (), CombinerAll> Test;
129
- BOOST_CHECK (Test ());
130
- Test.connect (&ReturnFalse);
131
- BOOST_CHECK (!Test ());
132
- Test.connect (&ReturnTrue);
133
- BOOST_CHECK (!Test ());
134
- Test.disconnect (&ReturnFalse);
135
- BOOST_CHECK (Test ());
136
- Test.disconnect (&ReturnTrue);
137
- BOOST_CHECK (Test ());
138
- }
139
122
BOOST_AUTO_TEST_SUITE_END ()
You can’t perform that action at this time.
0 commit comments