aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2015-10-01 10:01:07 -0700
committerMatt Brubeck <mbrubeck@limpet.net>2015-10-01 10:01:07 -0700
commit52eda16cca6f7eaf4282c293c30f50fa02b8b47f (patch)
treea312e8523d246834810cad7c7ed7eaa4d3ccfba5
parente2048d57c4c0602c5a6b82db8cb76e6c3e5467fa (diff)
downloadservo-52eda16cca6f7eaf4282c293c30f50fa02b8b47f.tar.gz
servo-52eda16cca6f7eaf4282c293c30f50fa02b8b47f.zip
Remove unused PostorderDomTraversal::should_prune
-rw-r--r--components/layout/traversal.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/components/layout/traversal.rs b/components/layout/traversal.rs
index 7742ee36582..cee485d62ce 100644
--- a/components/layout/traversal.rs
+++ b/components/layout/traversal.rs
@@ -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