From 7de8d17d2fbe7081413d46f9e6e9d5a34aa7f47a Mon Sep 17 00:00:00 2001 From: Ma Jianpeng Date: Thu, 4 Sep 2014 14:01:20 +0800 Subject: [PATCH] FileStore: Remove unused code. Signed-off-by: Ma Jianpeng --- src/os/FileStore.cc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index 4e7c1a32f2413..9982a6e4206d4 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -1944,16 +1944,8 @@ int FileStore::_do_transactions( ThreadPool::TPHandle *handle) { int r = 0; - - uint64_t bytes = 0, ops = 0; - for (list::iterator p = tls.begin(); - p != tls.end(); - ++p) { - bytes += (*p)->get_num_bytes(); - ops += (*p)->get_num_ops(); - } - int trans_num = 0; + for (list::iterator p = tls.begin(); p != tls.end(); ++p, trans_num++) { -- 2.39.5