From 936e06e132b5c0143efe5f6f37074a71ff269549 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Thu, 20 Aug 2020 10:46:06 +0100 Subject: [PATCH] [thin_check (rust)] Remove some unused params from NodeVisitor::visit --- src/pdata/btree.rs | 6 +++--- src/thin/check.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pdata/btree.rs b/src/pdata/btree.rs index d22956d..c61fa47 100644 --- a/src/pdata/btree.rs +++ b/src/pdata/btree.rs @@ -147,7 +147,7 @@ pub fn unpack_node( //------------------------------------------ pub trait NodeVisitor { - fn visit(&mut self, w: &BTreeWalker, b: &Block, node: &Node) -> Result<()>; + fn visit(&mut self, node: &Node) -> Result<()>; } #[derive(Clone)] @@ -225,7 +225,7 @@ impl BTreeWalker { } let node = unpack_node::(&b.get_data(), self.ignore_non_fatal, is_root)?; - visitor.visit(self, &b, &node)?; + visitor.visit(&node)?; if let Node::Internal { header: _h, @@ -281,7 +281,7 @@ impl ValueCollector { } impl NodeVisitor for ValueCollector { - fn visit(&mut self, _w: &BTreeWalker, _b: &Block, node: &Node) -> Result<()> { + fn visit(&mut self, node: &Node) -> Result<()> { if let Node::Leaf { header: _h, keys, diff --git a/src/thin/check.rs b/src/thin/check.rs index fb5d2db..8d86660 100644 --- a/src/thin/check.rs +++ b/src/thin/check.rs @@ -50,7 +50,7 @@ struct BottomLevelVisitor { //------------------------------------------ impl NodeVisitor for BottomLevelVisitor { - fn visit(&mut self, _w: &BTreeWalker, _b: &Block, node: &Node) -> Result<()> { + fn visit(&mut self, node: &Node) -> Result<()> { // FIXME: do other checks if let Node::Leaf { @@ -132,7 +132,7 @@ impl<'a> OverflowChecker<'a> { } impl<'a> NodeVisitor for OverflowChecker<'a> { - fn visit(&mut self, _w: &BTreeWalker, _b: &Block, node: &Node) -> Result<()> { + fn visit(&mut self, node: &Node) -> Result<()> { if let Node::Leaf { header: _h, keys,