From 04a10a588f944af2cb15c463eaecd71512be1dd5 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Mon, 27 Jul 2015 08:07:23 -0600 Subject: [PATCH] servo: Merge #6788 - Remove unused StyledNode::has_style method (from Ms2ger:has_style); r=SimonSapin Source-Repo: https://github.com/servo/servo Source-Revision: 662c00a8109c49d4c57343156b774441f4f48640 --- servo/components/layout/css/node_style.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/servo/components/layout/css/node_style.rs b/servo/components/layout/css/node_style.rs index 1a5c1a74933c..72afd0c61931 100644 --- a/servo/components/layout/css/node_style.rs +++ b/servo/components/layout/css/node_style.rs @@ -18,8 +18,6 @@ pub trait StyledNode { /// Returns the style results for the given node. If CSS selector matching has not yet been /// performed, fails. fn style<'a>(&'a self) -> Ref<'a, Arc>; - /// Does this node have a computed style yet? - fn has_style(&self) -> bool; /// Removes the style from this node. fn unstyle(self); } @@ -42,11 +40,6 @@ impl<'ln> StyledNode for ThreadSafeLayoutNode<'ln> { }) } - fn has_style(&self) -> bool { - let layout_data_ref = self.borrow_layout_data(); - layout_data_ref.as_ref().unwrap().shared_data.style.is_some() - } - fn unstyle(self) { let mut layout_data_ref = self.mutate_layout_data(); let layout_data = layout_data_ref.as_mut().expect("no layout data");