diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2023-03-21 13:04:53 +0000 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2023-03-21 13:04:53 +0000 |
commit | cea50521fe810111a8a3c84ad14f944eafb5b658 (patch) | |
tree | 37c7f0456d601c02b2df0cc4add4e026d213a263 /src | |
parent | a87fb6bee5a7fb0879b3adea9a29997f1331acb0 (diff) | |
download | bitcoin-cea50521fe810111a8a3c84ad14f944eafb5b658.tar.xz |
refactor: Drop no longer used `swap` member functions
Diffstat (limited to 'src')
-rw-r--r-- | src/test/checkqueue_tests.cpp | 18 | ||||
-rw-r--r-- | src/validation.h | 11 |
2 files changed, 0 insertions, 29 deletions
diff --git a/src/test/checkqueue_tests.cpp b/src/test/checkqueue_tests.cpp index 2a8f4f0444..e99a880280 100644 --- a/src/test/checkqueue_tests.cpp +++ b/src/test/checkqueue_tests.cpp @@ -43,7 +43,6 @@ struct FakeCheck { { return true; } - void swap(FakeCheck& x) noexcept {}; }; struct FakeCheckCheckCompletion { @@ -53,7 +52,6 @@ struct FakeCheckCheckCompletion { n_calls.fetch_add(1, std::memory_order_relaxed); return true; } - void swap(FakeCheckCheckCompletion& x) noexcept {}; }; struct FailingCheck { @@ -64,10 +62,6 @@ struct FailingCheck { { return !fails; } - void swap(FailingCheck& x) noexcept - { - std::swap(fails, x.fails); - }; }; struct UniqueCheck { @@ -82,10 +76,6 @@ struct UniqueCheck { results.insert(check_id); return true; } - void swap(UniqueCheck& x) noexcept - { - std::swap(x.check_id, check_id); - }; }; @@ -113,10 +103,6 @@ struct MemoryCheck { { fake_allocated_memory.fetch_sub(b, std::memory_order_relaxed); }; - void swap(MemoryCheck& x) noexcept - { - std::swap(b, x.b); - }; }; struct FrozenCleanupCheck { @@ -151,10 +137,6 @@ struct FrozenCleanupCheck { other.should_freeze = false; return *this; } - void swap(FrozenCleanupCheck& x) noexcept - { - std::swap(should_freeze, x.should_freeze); - }; }; // Static Allocations diff --git a/src/validation.h b/src/validation.h index a12d33b9be..aba863db09 100644 --- a/src/validation.h +++ b/src/validation.h @@ -328,17 +328,6 @@ public: bool operator()(); - void swap(CScriptCheck& check) noexcept - { - std::swap(ptxTo, check.ptxTo); - std::swap(m_tx_out, check.m_tx_out); - std::swap(nIn, check.nIn); - std::swap(nFlags, check.nFlags); - std::swap(cacheStore, check.cacheStore); - std::swap(error, check.error); - std::swap(txdata, check.txdata); - } - ScriptError GetScriptError() const { return error; } }; |