diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-07-27 15:57:26 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-07-27 15:57:26 +0200 |
commit | 760f5c70c502df26addb64c972fba26f7af78eb6 (patch) | |
tree | 80d0fa7e056fd333d862b362014fc011cc4d52a8 /components/layout/css | |
parent | 5b90cfd57d2d4595596c37b7f441d3422391eb8d (diff) | |
download | servo-760f5c70c502df26addb64c972fba26f7af78eb6.tar.gz servo-760f5c70c502df26addb64c972fba26f7af78eb6.zip |
Remove unused StyledNode::has_style method.
Diffstat (limited to 'components/layout/css')
-rw-r--r-- | components/layout/css/node_style.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/components/layout/css/node_style.rs b/components/layout/css/node_style.rs index 1a5c1a74933..72afd0c6193 100644 --- a/components/layout/css/node_style.rs +++ b/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<ComputedValues>>; - /// 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"); |