diff --git a/src/net.h b/src/net.h --- a/src/net.h +++ b/src/net.h @@ -450,20 +450,6 @@ bool BindListenPort(const CService &bindAddr, std::string &strError, bool fWhitelisted = false); -struct CombinerAll { - typedef bool result_type; - - template bool operator()(I first, I last) const { - while (first != last) { - if (!(*first)) { - return false; - } - ++first; - } - return true; - } -}; - /** * Interface for message handling */ diff --git a/src/test/main_tests.cpp b/src/test/main_tests.cpp --- a/src/test/main_tests.cpp +++ b/src/test/main_tests.cpp @@ -57,23 +57,4 @@ BOOST_CHECK_EQUAL(nSum, int64_t(2099999997690000LL) * SATOSHI); } -bool ReturnFalse() { - return false; -} -bool ReturnTrue() { - return true; -} - -BOOST_AUTO_TEST_CASE(test_combiner_all) { - boost::signals2::signal Test; - BOOST_CHECK(Test()); - Test.connect(&ReturnFalse); - BOOST_CHECK(!Test()); - Test.connect(&ReturnTrue); - BOOST_CHECK(!Test()); - Test.disconnect(&ReturnFalse); - BOOST_CHECK(Test()); - Test.disconnect(&ReturnTrue); - BOOST_CHECK(Test()); -} BOOST_AUTO_TEST_SUITE_END()