Auto merge of #6588 - Ms2ger:has_children, r=pcwalton

Remove unused has_children method.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6588)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-07-13 23:01:54 -06:00
commit c70d53c9fe

View file

@ -191,10 +191,6 @@ impl<'ln> LayoutNode<'ln> {
} }
} }
pub fn has_children(self) -> bool {
self.first_child().is_some()
}
/// While doing a reflow, the node at the root has no parent, as far as we're /// While doing a reflow, the node at the root has no parent, as far as we're
/// concerned. This method returns `None` at the reflow root. /// concerned. This method returns `None` at the reflow root.
pub fn layout_parent_node(self, shared: &SharedLayoutContext) -> Option<LayoutNode<'ln>> { pub fn layout_parent_node(self, shared: &SharedLayoutContext) -> Option<LayoutNode<'ln>> {