[unit-test] Knock out some dead code
This commit is contained in:
parent
7df5b26f39
commit
4ed5ec5e10
@ -54,12 +54,6 @@ namespace {
|
|||||||
block_manager<>::write_ref superblock(bm_->superblock(SUPERBLOCK));
|
block_manager<>::write_ref superblock(bm_->superblock(SUPERBLOCK));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
void dump_counts(block_counter const &bc) {
|
|
||||||
block_counter::count_map::const_iterator it, end = bc.get_counts().end();
|
|
||||||
for (it = bc.get_counts().begin(); it != end; ++it)
|
|
||||||
cout << it->first << " -> " << it->second << endl;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------
|
//----------------------------------------------------------------
|
||||||
|
@ -76,29 +76,6 @@ namespace {
|
|||||||
run<uint64_t> keys;
|
run<uint64_t> keys;
|
||||||
};
|
};
|
||||||
|
|
||||||
ostream &operator <<(ostream &out, node_info const &ni) {
|
|
||||||
out << "node_info [leaf = " << ni.leaf
|
|
||||||
<< ", depth " << ni.depth
|
|
||||||
<< ", path [";
|
|
||||||
|
|
||||||
bool first = true;
|
|
||||||
btree_detail::btree_path::const_iterator it;
|
|
||||||
for (it = ni.path.begin(); it != ni.path.end(); ++it) {
|
|
||||||
if (first)
|
|
||||||
first = false;
|
|
||||||
else
|
|
||||||
out << ", ";
|
|
||||||
|
|
||||||
out << *it;
|
|
||||||
}
|
|
||||||
|
|
||||||
out << "], b " << ni.b
|
|
||||||
<< ", keys " << ni.keys
|
|
||||||
<< "]";
|
|
||||||
|
|
||||||
return out;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool is_leaf(node_info const &n) {
|
bool is_leaf(node_info const &n) {
|
||||||
return n.leaf;
|
return n.leaf;
|
||||||
}
|
}
|
||||||
|
@ -38,19 +38,6 @@ namespace {
|
|||||||
superblock sb_;
|
superblock sb_;
|
||||||
};
|
};
|
||||||
|
|
||||||
bool operator ==(superblock_corrupt const &lhs, superblock_corrupt const &rhs) {
|
|
||||||
return lhs.get_desc() == rhs.get_desc();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool operator ==(superblock_invalid const &lhs, superblock_invalid const &rhs) {
|
|
||||||
return lhs.get_desc() == rhs.get_desc();
|
|
||||||
}
|
|
||||||
|
|
||||||
ostream &operator <<(ostream &out, damage const &d) {
|
|
||||||
out << d.get_desc();
|
|
||||||
return out;
|
|
||||||
}
|
|
||||||
|
|
||||||
ostream &operator <<(ostream &out, superblock_invalid const &d) {
|
ostream &operator <<(ostream &out, superblock_invalid const &d) {
|
||||||
out << "superblock_invalid: " << d.get_desc();
|
out << "superblock_invalid: " << d.get_desc();
|
||||||
return out;
|
return out;
|
||||||
|
@ -33,11 +33,6 @@ namespace {
|
|||||||
unsigned const BLOCK_SIZE = 64u;
|
unsigned const BLOCK_SIZE = 64u;
|
||||||
using wait_result = io_engine::wait_result;
|
using wait_result = io_engine::wait_result;
|
||||||
|
|
||||||
ostream &operator <<(ostream &out, wait_result const &wr) {
|
|
||||||
out << "wait_result[" << wr.first << ", " << wr.second << "]";
|
|
||||||
return out;
|
|
||||||
}
|
|
||||||
|
|
||||||
ostream &operator <<(ostream &out, optional<wait_result> const &mwr) {
|
ostream &operator <<(ostream &out, optional<wait_result> const &mwr) {
|
||||||
if (mwr) {
|
if (mwr) {
|
||||||
out << "Just[wait_result[" << mwr->first << ", " << mwr->second << "]]";
|
out << "Just[wait_result[" << mwr->first << ", " << mwr->second << "]]";
|
||||||
|
Loading…
Reference in New Issue
Block a user