mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Auto merge of #19533 - emilio:unused-code-should-die, r=emilio
style: Remove unused SelectorImpl::pseudo_element_cascade_type. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19533) <!-- Reviewable:end -->
This commit is contained in:
commit
95520ca39c
2 changed files with 1 additions and 13 deletions
|
@ -9,7 +9,7 @@ use element_state::{DocumentState, ElementState};
|
||||||
use gecko_bindings::structs::CSSPseudoClassType;
|
use gecko_bindings::structs::CSSPseudoClassType;
|
||||||
use gecko_bindings::structs::RawServoSelectorList;
|
use gecko_bindings::structs::RawServoSelectorList;
|
||||||
use gecko_bindings::sugar::ownership::{HasBoxFFI, HasFFI, HasSimpleFFI};
|
use gecko_bindings::sugar::ownership::{HasBoxFFI, HasFFI, HasSimpleFFI};
|
||||||
use selector_parser::{Direction, SelectorParser, PseudoElementCascadeType};
|
use selector_parser::{Direction, SelectorParser};
|
||||||
use selectors::SelectorList;
|
use selectors::SelectorList;
|
||||||
use selectors::parser::{Selector, SelectorMethods, SelectorParseErrorKind};
|
use selectors::parser::{Selector, SelectorMethods, SelectorParseErrorKind};
|
||||||
use selectors::visitor::SelectorVisitor;
|
use selectors::visitor::SelectorVisitor;
|
||||||
|
@ -481,12 +481,6 @@ impl<'a, 'i> ::selectors::Parser<'i> for SelectorParser<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SelectorImpl {
|
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
|
/// A helper to traverse each eagerly cascaded pseudo-element, executing
|
||||||
/// `fun` on it.
|
/// `fun` on it.
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
|
@ -547,12 +547,6 @@ impl<'a, 'i> ::selectors::Parser<'i> for SelectorParser<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SelectorImpl {
|
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
|
/// A helper to traverse each eagerly cascaded pseudo-element, executing
|
||||||
/// `fun` on it.
|
/// `fun` on it.
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue