From fa5facd3e72b6d61374b0b93b722b55e2b090020 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Tue, 5 Nov 2019 14:01:18 -0500 Subject: [PATCH] rpc: Remove unused boost::this_thread::interruption_point --- src/node/coinstats.cpp | 4 ---- src/rpc/blockchain.cpp | 3 --- 2 files changed, 7 deletions(-) diff --git a/src/node/coinstats.cpp b/src/node/coinstats.cpp index 57fa158ad2..049868736c 100644 --- a/src/node/coinstats.cpp +++ b/src/node/coinstats.cpp @@ -14,9 +14,6 @@ #include -#include - - static void ApplyStats(CCoinsStats &stats, CHashWriter& ss, const uint256& hash, const std::map& outputs) { assert(!outputs.empty()); @@ -51,7 +48,6 @@ bool GetUTXOStats(CCoinsView *view, CCoinsStats &stats) uint256 prevkey; std::map outputs; while (pcursor->Valid()) { - boost::this_thread::interruption_point(); COutPoint key; Coin coin; if (pcursor->GetKey(key) && pcursor->GetValue(coin)) { diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index d08f852751..faed7d1317 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -38,8 +38,6 @@ #include -#include // boost::thread::interrupt - #include #include #include @@ -1975,7 +1973,6 @@ bool FindScriptPubKey(std::atomic& scan_progress, const std::atomic& Coin coin; if (!cursor->GetKey(key) || !cursor->GetValue(coin)) return false; if (++count % 8192 == 0) { - boost::this_thread::interruption_point(); if (should_abort) { // allow to abort the scan via the abort reference return false;