From 72e20c2d400770f89ad6a085b1f8b413640de9d2 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 16 Jun 2014 13:41:07 +0100 Subject: [PATCH] remove some dead code --- era/metadata.cc | 9 --------- thin-provisioning/metadata.cc | 16 ---------------- 2 files changed, 25 deletions(-) diff --git a/era/metadata.cc b/era/metadata.cc index baae96a..d344b6c 100644 --- a/era/metadata.cc +++ b/era/metadata.cc @@ -16,15 +16,6 @@ namespace { transaction_manager::ptr tm(new transaction_manager(bm, sm)); return tm; } - - void - copy_space_maps(space_map::ptr lhs, space_map::ptr rhs) { - for (block_address b = 0; b < rhs->get_nr_blocks(); b++) { - uint32_t count = rhs->get_count(b); - if (count > 0) - lhs->set_count(b, rhs->get_count(b)); - } - } } metadata::metadata(block_manager<>::ptr bm, open_type ot) diff --git a/thin-provisioning/metadata.cc b/thin-provisioning/metadata.cc index fdc96e3..908d16b 100644 --- a/thin-provisioning/metadata.cc +++ b/thin-provisioning/metadata.cc @@ -56,22 +56,6 @@ namespace { lhs->set_count(b, rhs->get_count(b)); } } - - void print_superblock(superblock const &sb) { - using namespace std; - - cerr << "superblock " << sb.csum_ << endl - << "flags " << sb.flags_ << endl - << "blocknr " << sb.blocknr_ << endl - << "transaction id " << sb.trans_id_ << endl - << "data mapping root " << sb.data_mapping_root_ << endl - << "details root " << sb.device_details_root_ << endl - << "data block size " << sb.data_block_size_ << endl - << "metadata block size " << sb.metadata_block_size_ << endl - << "metadata nr blocks " << sb.metadata_nr_blocks_ << endl - << "metadata snapshot block " << sb.metadata_snap_ << endl - ; - } } //----------------------------------------------------------------