Skip to content

Commit 30ded3e

Browse files
committed
[Refactor] Remove unused fQuit var from checkqueue.h
1 parent 45173fa commit 30ded3e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/checkqueue.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ class CCheckQueue
5959
*/
6060
unsigned int nTodo;
6161

62-
//! Whether we're shutting down.
63-
bool fQuit;
64-
6562
//! The maximum number of elements to be processed in one batch
6663
unsigned int nBatchSize;
6764

@@ -89,7 +86,7 @@ class CCheckQueue
8986
}
9087
// logically, the do loop starts here
9188
while (queue.empty()) {
92-
if ((fMaster || fQuit) && nTodo == 0) {
89+
if (fMaster && nTodo == 0) {
9390
nTotal--;
9491
bool fRet = fAllOk;
9592
// reset the status for new work later
@@ -131,7 +128,7 @@ class CCheckQueue
131128
boost::mutex ControlMutex;
132129

133130
//! Create a new check queue
134-
explicit CCheckQueue(unsigned int nBatchSizeIn) : nIdle(0), nTotal(0), fAllOk(true), nTodo(0), fQuit(false), nBatchSize(nBatchSizeIn) {}
131+
explicit CCheckQueue(unsigned int nBatchSizeIn) : nIdle(0), nTotal(0), fAllOk(true), nTodo(0), nBatchSize(nBatchSizeIn) {}
135132

136133
//! Worker thread
137134
void Thread()

0 commit comments

Comments
 (0)