diff options
Diffstat (limited to 'components/style/servo/selector_parser.rs')
-rw-r--r-- | components/style/servo/selector_parser.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/components/style/servo/selector_parser.rs b/components/style/servo/selector_parser.rs index 1cae314ddec..34cec12b83f 100644 --- a/components/style/servo/selector_parser.rs +++ b/components/style/servo/selector_parser.rs @@ -16,7 +16,6 @@ use restyle_hints::ElementSnapshot; use selector_parser::{ElementExt, PseudoElementCascadeType, SelectorParser}; use selectors::Element; use selectors::attr::{AttrSelectorOperation, NamespaceConstraint}; -use selectors::matching::{MatchingContext, MatchingMode}; use selectors::parser::SelectorMethods; use selectors::visitor::SelectorVisitor; use std::borrow::Cow; @@ -601,13 +600,6 @@ impl ServoElementSnapshot { } impl<E: Element<Impl=SelectorImpl> + Debug> ElementExt for E { - fn is_link(&self) -> bool { - let mut context = MatchingContext::new(MatchingMode::Normal, None); - self.match_non_ts_pseudo_class(&NonTSPseudoClass::AnyLink, - &mut context, - &mut |_, _| {}) - } - #[inline] fn matches_user_and_author_rules(&self) -> bool { true |