From c93b844125f108e2912fcd58421df8fb5dafcd2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 9 Dec 2017 16:01:39 +0100 Subject: [PATCH] style: Remove unused SelectorImpl::pseudo_element_cascade_type. --- components/style/gecko/selector_parser.rs | 8 +------- components/style/servo/selector_parser.rs | 6 ------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/components/style/gecko/selector_parser.rs b/components/style/gecko/selector_parser.rs index 827e832ebcd..4e8fa68f74d 100644 --- a/components/style/gecko/selector_parser.rs +++ b/components/style/gecko/selector_parser.rs @@ -9,7 +9,7 @@ use element_state::{DocumentState, ElementState}; use gecko_bindings::structs::CSSPseudoClassType; use gecko_bindings::structs::RawServoSelectorList; use gecko_bindings::sugar::ownership::{HasBoxFFI, HasFFI, HasSimpleFFI}; -use selector_parser::{Direction, SelectorParser, PseudoElementCascadeType}; +use selector_parser::{Direction, SelectorParser}; use selectors::SelectorList; use selectors::parser::{Selector, SelectorMethods, SelectorParseErrorKind}; use selectors::visitor::SelectorVisitor; @@ -477,12 +477,6 @@ impl<'a, 'i> ::selectors::Parser<'i> for SelectorParser<'a> { } impl SelectorImpl { - #[inline] - /// Legacy alias for PseudoElement::cascade_type. - pub fn pseudo_element_cascade_type(pseudo: &PseudoElement) -> PseudoElementCascadeType { - pseudo.cascade_type() - } - /// A helper to traverse each eagerly cascaded pseudo-element, executing /// `fun` on it. #[inline] diff --git a/components/style/servo/selector_parser.rs b/components/style/servo/selector_parser.rs index fa76654aa4a..a06de17734e 100644 --- a/components/style/servo/selector_parser.rs +++ b/components/style/servo/selector_parser.rs @@ -547,12 +547,6 @@ impl<'a, 'i> ::selectors::Parser<'i> for SelectorParser<'a> { } impl SelectorImpl { - /// Returns the pseudo-element cascade type of the given `pseudo`. - #[inline] - pub fn pseudo_element_cascade_type(pseudo: &PseudoElement) -> PseudoElementCascadeType { - pseudo.cascade_type() - } - /// A helper to traverse each eagerly cascaded pseudo-element, executing /// `fun` on it. #[inline]