Auto merge of #7817 - mbrubeck:prune, r=nox

Remove unused PostorderDomTraversal::should_prune

r? @pcwalton

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7817)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-10-05 05:23:20 -06:00
commit e616f4a74c

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