From c65b9a307c0d317103e37ac5be5d27a789276441 Mon Sep 17 00:00:00 2001 From: Cameron McCormack Date: Fri, 9 Jun 2017 12:06:12 +0800 Subject: [PATCH] style: Remove unused TElement::layout_parent_element. --- components/style/dom.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/components/style/dom.rs b/components/style/dom.rs index 318068c8aa9..aef401dc43e 100644 --- a/components/style/dom.rs +++ b/components/style/dom.rs @@ -316,16 +316,6 @@ pub trait TElement : Eq + PartialEq + Debug + Hash + Sized + Copy + Clone + depth } - /// While doing a reflow, the element at the root has no parent, as far as we're - /// concerned. This method returns `None` at the reflow root. - fn layout_parent_element(self, reflow_root: OpaqueNode) -> Option { - if self.as_node().opaque() == reflow_root { - None - } else { - self.parent_element() - } - } - /// Get this node's parent element from the perspective of a restyle /// traversal. fn traversal_parent(&self) -> Option {