Skip to content

Commit

Permalink
[Refactor] Remove unused fQuit var from checkqueue.h
Browse files Browse the repository at this point in the history
  • Loading branch information
donaloconnor authored and random-zebra committed Jul 25, 2021
1 parent fda7a5f commit 4c5fe36
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/checkqueue.h
Expand Up @@ -57,9 +57,6 @@ class CCheckQueue
*/
unsigned int nTodo;

//! Whether we're shutting down.
bool fQuit;

//! The maximum number of elements to be processed in one batch
unsigned int nBatchSize;

Expand Down Expand Up @@ -87,7 +84,7 @@ class CCheckQueue
}
// logically, the do loop starts here
while (queue.empty()) {
if ((fMaster || fQuit) && nTodo == 0) {
if (fMaster && nTodo == 0) {
nTotal--;
bool fRet = fAllOk;
// reset the status for new work later
Expand Down Expand Up @@ -126,7 +123,7 @@ class CCheckQueue

public:
//! Create a new check queue
CCheckQueue(unsigned int nBatchSizeIn) : nIdle(0), nTotal(0), fAllOk(true), nTodo(0), fQuit(false), nBatchSize(nBatchSizeIn) {}
explicit CCheckQueue(unsigned int nBatchSizeIn) : nIdle(0), nTotal(0), fAllOk(true), nTodo(0), nBatchSize(nBatchSizeIn) {}

//! Worker thread
void Thread()
Expand Down

0 comments on commit 4c5fe36

Please sign in to comment.