Remove unused PostorderDomTraversal::should_prune

This commit is contained in:
Matt Brubeck 2015-10-01 10:01:07 -07:00
parent e2048d57c4
commit 52eda16cca

View file

@ -128,13 +128,6 @@ pub trait PostorderDomTraversal {
pub trait PostorderNodeMutTraversal {
/// The operation to perform. Return true to continue or false to stop.
fn process<'a>(&'a mut self, node: &ThreadSafeLayoutNode<'a>) -> bool;
/// Returns true if this node should be pruned. If this returns true, we skip the operation
/// entirely and do not process any descendant nodes. This is called *before* child nodes are
/// visited. The default implementation never prunes any nodes.
fn should_prune<'a>(&'a self, _node: &ThreadSafeLayoutNode<'a>) -> bool {
false
}
}
/// The recalc-style-for-node traversal, which styles each node and must run before