diff --git a/components/style/gecko/selector_parser.rs b/components/style/gecko/selector_parser.rs index cbc2806ef83..cb2c9d80050 100644 --- a/components/style/gecko/selector_parser.rs +++ b/components/style/gecko/selector_parser.rs @@ -433,13 +433,6 @@ impl SelectorImpl { fun(pseudo.clone()) } } - - - /// Returns the relevant state flag for a given non-tree-structural - /// pseudo-class. - pub fn pseudo_class_state_flag(pc: &NonTSPseudoClass) -> ElementState { - pc.state_flag() - } } fn utf16_to_ascii_lowercase(unit: u16) -> u16 { diff --git a/components/style/servo/selector_parser.rs b/components/style/servo/selector_parser.rs index bffb436cf1c..b5552cbbfb0 100644 --- a/components/style/servo/selector_parser.rs +++ b/components/style/servo/selector_parser.rs @@ -561,12 +561,6 @@ impl SelectorImpl { fun(PseudoElement::from_eager_index(i)); } } - - /// Returns the pseudo-class state flag for selector matching. - #[inline] - pub fn pseudo_class_state_flag(pc: &NonTSPseudoClass) -> ElementState { - pc.state_flag() - } } /// A map from elements to snapshots for the Servo style back-end.