From 7b583628ad5e74ad0e6b91e773d1be26e72b5400 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 3 Oct 2017 13:58:12 +0200 Subject: [PATCH] Remove unused variables. --- client/concurrentqueue.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/client/concurrentqueue.h b/client/concurrentqueue.h index 007326ac..cb1f5208 100755 --- a/client/concurrentqueue.h +++ b/client/concurrentqueue.h @@ -1907,8 +1907,6 @@ private: pr_newTailIndex = 1 + currentTailIndex; if ((currentTailIndex & static_cast(BLOCK_SIZE - 1)) == 0) { // We reached the end of a block, start a new one - auto startBlock = this->tailBlock; - auto originalBlockIndexSlotsUsed = pr_blockIndexSlotsUsed; if (this->tailBlock != nullptr && this->tailBlock->next->ConcurrentQueue::Block::template is_empty()) { // We can re-use the block ahead of us, it's empty! this->tailBlock = this->tailBlock->next; @@ -1964,9 +1962,6 @@ private: ++pr_blockIndexSlotsUsed; } - (void)startBlock; - (void)originalBlockIndexSlotsUsed; - // Add block to block index auto& entry = blockIndex.load(std::memory_order_relaxed)->entries[pr_blockIndexFront]; entry.base = currentTailIndex;