mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-12 12:53:31 +02:00
test: Remove unused Check* default constructors
This commit is contained in:
parent
a70911492f
commit
fae349076d
@ -57,7 +57,6 @@ struct FakeCheckCheckCompletion {
|
|||||||
struct FailingCheck {
|
struct FailingCheck {
|
||||||
bool fails;
|
bool fails;
|
||||||
FailingCheck(bool _fails) : fails(_fails){};
|
FailingCheck(bool _fails) : fails(_fails){};
|
||||||
FailingCheck() : fails(true){};
|
|
||||||
bool operator()() const
|
bool operator()() const
|
||||||
{
|
{
|
||||||
return !fails;
|
return !fails;
|
||||||
@ -69,7 +68,6 @@ struct UniqueCheck {
|
|||||||
static std::unordered_multiset<size_t> results GUARDED_BY(m);
|
static std::unordered_multiset<size_t> results GUARDED_BY(m);
|
||||||
size_t check_id;
|
size_t check_id;
|
||||||
UniqueCheck(size_t check_id_in) : check_id(check_id_in){};
|
UniqueCheck(size_t check_id_in) : check_id(check_id_in){};
|
||||||
UniqueCheck() : check_id(0){};
|
|
||||||
bool operator()()
|
bool operator()()
|
||||||
{
|
{
|
||||||
LOCK(m);
|
LOCK(m);
|
||||||
@ -86,7 +84,6 @@ struct MemoryCheck {
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
MemoryCheck() = default;
|
|
||||||
MemoryCheck(const MemoryCheck& x)
|
MemoryCheck(const MemoryCheck& x)
|
||||||
{
|
{
|
||||||
// We have to do this to make sure that destructor calls are paired
|
// We have to do this to make sure that destructor calls are paired
|
||||||
@ -176,9 +173,7 @@ static void Correct_Queue_range(std::vector<size_t> range)
|
|||||||
control.Add(std::move(vChecks));
|
control.Add(std::move(vChecks));
|
||||||
}
|
}
|
||||||
BOOST_REQUIRE(control.Wait());
|
BOOST_REQUIRE(control.Wait());
|
||||||
if (FakeCheckCheckCompletion::n_calls != i) {
|
BOOST_REQUIRE_EQUAL(FakeCheckCheckCompletion::n_calls, i);
|
||||||
BOOST_REQUIRE_EQUAL(FakeCheckCheckCompletion::n_calls, i);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
small_queue->StopWorkerThreads();
|
small_queue->StopWorkerThreads();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user