From e17e001b0fbf488308281a2235fc0e5122240688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sun, 21 May 2017 17:39:26 +0200 Subject: [PATCH] style: Remove now-unused cached_pseudos field. --- components/style/data.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/components/style/data.rs b/components/style/data.rs index 4e6d191d19d..6e0feb35b68 100644 --- a/components/style/data.rs +++ b/components/style/data.rs @@ -12,9 +12,7 @@ use restyle_hints::{HintComputationContext, RestyleReplacements, RestyleHint}; use rule_tree::StrongRuleNode; use selector_parser::{EAGER_PSEUDO_COUNT, PseudoElement, RestyleDamage}; use shared_lock::StylesheetGuards; -#[cfg(feature = "servo")] use std::collections::HashMap; use std::fmt; -#[cfg(feature = "servo")] use std::hash::BuildHasherDefault; use stylearc::Arc; use traversal::TraversalFlags; @@ -145,14 +143,6 @@ impl EagerPseudoStyles { } } -/// A cache of precomputed and lazy pseudo-elements, used by servo. This isn't -/// a very efficient design, but is the result of servo having previously used -/// the eager pseudo map (when it was a map) for this cache. -#[cfg(feature = "servo")] -type PseudoElementCache = HashMap>; -#[cfg(feature = "gecko")] -type PseudoElementCache = (); - /// The styles associated with a node, including the styles for any /// pseudo-elements. #[derive(Clone, Debug)] @@ -161,8 +151,6 @@ pub struct ElementStyles { pub primary: ComputedStyle, /// A list of the styles for the element's eagerly-cascaded pseudo-elements. pub pseudos: EagerPseudoStyles, - /// NB: This is an empty field for gecko. - pub cached_pseudos: PseudoElementCache, } impl ElementStyles { @@ -171,7 +159,6 @@ impl ElementStyles { ElementStyles { primary: primary, pseudos: EagerPseudoStyles(None), - cached_pseudos: PseudoElementCache::default(), } }