Remove unused variables.

This commit is contained in:
Bartosz Taudul 2017-10-03 13:58:12 +02:00
parent f74a313d12
commit 7b583628ad

View File

@ -1907,8 +1907,6 @@ private:
pr_newTailIndex = 1 + currentTailIndex;
if ((currentTailIndex & static_cast<index_t>(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<explicit_context>()) {
// 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;