From dfd066e59e0462cbcb347b95c058a891497be62a Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Mon, 14 Aug 2017 10:34:59 +0100 Subject: [PATCH] [block-cache] remove unused var --- block-cache/block_cache.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/block-cache/block_cache.cc b/block-cache/block_cache.cc index 7f603c2..5e72cd8 100644 --- a/block-cache/block_cache.cc +++ b/block-cache/block_cache.cc @@ -252,7 +252,7 @@ block_cache::wait_specific(block &b) unsigned block_cache::writeback(unsigned count) { - unsigned actual = 0, dirty_length = 0; + unsigned actual = 0; // issue_write unlinks b, which invalidates the iteration, so we // keep track of the next element before removing. @@ -261,7 +261,6 @@ block_cache::writeback(unsigned count) while (it != dirty_.end()) { next = it; ++next; - dirty_length++; if (actual == count) break;