From cef7a82584eb12f25c3c48f1f208bd245ca969e8 Mon Sep 17 00:00:00 2001 From: Ning Yao Date: Tue, 30 Dec 2014 10:53:21 +0000 Subject: [PATCH] KeyValueStore:: do_transactions: clean up code which is never used clean up ops and bytes which is never used in do_transactions() Signed-off-by: Ning Yao --- src/os/KeyValueStore.cc | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/os/KeyValueStore.cc b/src/os/KeyValueStore.cc index 3603c1e75f2..91cbcad2da9 100644 --- a/src/os/KeyValueStore.cc +++ b/src/os/KeyValueStore.cc @@ -1159,15 +1159,6 @@ int KeyValueStore::_do_transactions(list &tls, uint64_t op_seq, 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; BufferTransaction bt(this);