selectors: Remove unused visit_simple_selectors.

This commit is contained in:
Emilio Cobos Álvarez 2017-04-09 06:45:22 +02:00
parent 96ee4c7c66
commit 8dfef0416f
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 1 additions and 10 deletions

View file

@ -185,10 +185,6 @@ impl<Impl: SelectorImpl> SelectorMethods for SimpleSelector<Impl> {
{ {
use self::SimpleSelector::*; use self::SimpleSelector::*;
if !visitor.visit_simple_selector(self) {
return false;
}
match *self { match *self {
Negation(ref negated) => { Negation(ref negated) => {
for selector in negated { for selector in negated {

View file

@ -6,7 +6,7 @@
#![deny(missing_docs)] #![deny(missing_docs)]
use parser::{AttrSelector, Combinator, ComplexSelector, SelectorImpl, SimpleSelector}; use parser::{AttrSelector, Combinator, ComplexSelector, SelectorImpl};
use std::sync::Arc; use std::sync::Arc;
/// A trait to visit selector properties. /// A trait to visit selector properties.
@ -34,9 +34,4 @@ pub trait SelectorVisitor {
-> bool { -> bool {
true true
} }
/// Visits a simple selector.
fn visit_simple_selector(&mut self, _: &SimpleSelector<Self::Impl>) -> bool {
true
}
} }