Skip to content

Commit

Permalink
Merge #12108: [Refactor] Remove unused fQuit var from checkqueue.h
Browse files Browse the repository at this point in the history
30ded3e [Refactor] Remove unused fQuit var from checkqueue.h (donaloconnor)

Pull request description:

  As per PR title, this var is no longer required

  Tested by doing a successful compile.

Tree-SHA512: 845e5e0a250cb99e353e8584e9af2df44d97683174e8caa1069bd192b72ab622063765f29676272aecaef87596d72c63ae628404e2f42555136ec2c26d419f2d
  • Loading branch information
laanwj committed Jan 29, 2018
2 parents 3fa1ab4 + 30ded3e commit 9220426
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/checkqueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,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 @@ -89,7 +86,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 @@ -131,7 +128,7 @@ class CCheckQueue
boost::mutex ControlMutex;

//! Create a new check queue
explicit 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 9220426

Please sign in to comment.