style: Remove the ElementExt trait.

It is likely it's the most useless trait ever existing.
This commit is contained in:
Emilio Cobos Álvarez 2017-10-16 13:28:30 +02:00
parent 1e351ef8c4
commit bfe230f3ed
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 25 additions and 31 deletions

View file

@ -16,14 +16,12 @@ use invalidation::element::element_wrapper::ElementSnapshot;
use properties::ComputedValues;
use properties::PropertyFlags;
use properties::longhands::display::computed_value as display;
use selector_parser::{AttrValue as SelectorAttrValue, ElementExt, PseudoElementCascadeType, SelectorParser};
use selectors::Element;
use selector_parser::{AttrValue as SelectorAttrValue, PseudoElementCascadeType, SelectorParser};
use selectors::attr::{AttrSelectorOperation, NamespaceConstraint, CaseSensitivity};
use selectors::parser::{SelectorMethods, SelectorParseErrorKind};
use selectors::visitor::SelectorVisitor;
use std::ascii::AsciiExt;
use std::fmt;
use std::fmt::Debug;
use std::mem;
use std::ops::{Deref, DerefMut};
use style_traits::{ParseError, StyleParseErrorKind};
@ -715,13 +713,6 @@ impl ServoElementSnapshot {
}
}
impl<E: Element<Impl=SelectorImpl> + Debug> ElementExt for E {
#[inline]
fn matches_user_and_author_rules(&self) -> bool {
true
}
}
/// Returns whether the language is matched, as defined by
/// [RFC 4647](https://tools.ietf.org/html/rfc4647#section-3.3.2).
pub fn extended_filtering(tag: &str, range: &str) -> bool {