Skip to content

Commit 9220426

Browse files
committed
Merge #12108: [Refactor] Remove unused fQuit var from checkqueue.h
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
2 parents 3fa1ab4 + 30ded3e commit 9220426

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)