[thin_check (rust)] remove some dead code

This commit is contained in:
Joe Thornber 2020-08-13 14:30:04 +01:00
parent 2fa732a93c
commit 092447d17a
1 changed files with 0 additions and 25 deletions

View File

@ -17,31 +17,6 @@ use crate::thin::superblock::*;
//------------------------------------------
struct TopLevelVisitor<'a> {
roots: &'a mut BTreeMap<u32, u64>,
}
impl<'a> NodeVisitor<u64> for TopLevelVisitor<'a> {
fn visit(&mut self, _w: &BTreeWalker, _b: &Block, node: &Node<u64>) -> Result<()> {
if let Node::Leaf {
header: _h,
keys,
values,
} = node
{
for n in 0..keys.len() {
let k = keys[n];
let root = values[n];
self.roots.insert(k as u32, root);
}
}
Ok(())
}
}
//------------------------------------------
#[allow(dead_code)]
struct BlockTime {
block: u64,