Skip to content

Commit

Permalink
Remove more unnecessary apply_children
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Dec 30, 2023
1 parent 56c3919 commit d4eab3a
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions datafusion/common/src/tree_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,20 +359,6 @@ impl<T: DynTreeNode + ?Sized> TreeNode for Arc<T> {
self.arc_children()
}

fn apply_children<F>(&self, op: &mut F) -> Result<VisitRecursion>
where
F: FnMut(&Self) -> Result<VisitRecursion>,
{
for child in &self.arc_children() {
match op(child)? {
VisitRecursion::Continue => {}
VisitRecursion::Skip => return Ok(VisitRecursion::Continue),
VisitRecursion::Stop => return Ok(VisitRecursion::Stop),
}
}
Ok(VisitRecursion::Continue)
}

fn map_children<F>(self, transform: F) -> Result<Self>
where
F: FnMut(Self) -> Result<Self>,
Expand Down

0 comments on commit d4eab3a

Please sign in to comment.