mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
selectors: Remove unused visit_simple_selectors.
This commit is contained in:
parent
96ee4c7c66
commit
8dfef0416f
2 changed files with 1 additions and 10 deletions
|
@ -185,10 +185,6 @@ impl<Impl: SelectorImpl> SelectorMethods for SimpleSelector<Impl> {
|
|||
{
|
||||
use self::SimpleSelector::*;
|
||||
|
||||
if !visitor.visit_simple_selector(self) {
|
||||
return false;
|
||||
}
|
||||
|
||||
match *self {
|
||||
Negation(ref negated) => {
|
||||
for selector in negated {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#![deny(missing_docs)]
|
||||
|
||||
use parser::{AttrSelector, Combinator, ComplexSelector, SelectorImpl, SimpleSelector};
|
||||
use parser::{AttrSelector, Combinator, ComplexSelector, SelectorImpl};
|
||||
use std::sync::Arc;
|
||||
|
||||
/// A trait to visit selector properties.
|
||||
|
@ -34,9 +34,4 @@ pub trait SelectorVisitor {
|
|||
-> bool {
|
||||
true
|
||||
}
|
||||
|
||||
/// Visits a simple selector.
|
||||
fn visit_simple_selector(&mut self, _: &SimpleSelector<Self::Impl>) -> bool {
|
||||
true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue