remove some dead code
This commit is contained in:
parent
d7d293ee4f
commit
72e20c2d40
@ -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)
|
||||
|
@ -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
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user