mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Remove unused selector visitor argument.
This commit is contained in:
parent
2e775abfa4
commit
ffa9dd1c7c
3 changed files with 1 additions and 3 deletions
|
@ -272,7 +272,7 @@ impl<Impl: SelectorImpl> SelectorMethods for Selector<Impl> {
|
||||||
let mut current = self.iter();
|
let mut current = self.iter();
|
||||||
let mut combinator = None;
|
let mut combinator = None;
|
||||||
loop {
|
loop {
|
||||||
if !visitor.visit_complex_selector(current.clone(), combinator) {
|
if !visitor.visit_complex_selector(combinator) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,6 @@ pub trait SelectorVisitor {
|
||||||
/// Gets the combinator to the right of the selector, or `None` if the
|
/// Gets the combinator to the right of the selector, or `None` if the
|
||||||
/// selector is the rightmost one.
|
/// selector is the rightmost one.
|
||||||
fn visit_complex_selector(&mut self,
|
fn visit_complex_selector(&mut self,
|
||||||
_: SelectorIter<Self::Impl>,
|
|
||||||
_combinator_to_right: Option<Combinator>)
|
_combinator_to_right: Option<Combinator>)
|
||||||
-> bool {
|
-> bool {
|
||||||
true
|
true
|
||||||
|
|
|
@ -1652,7 +1652,6 @@ impl<'a> SelectorVisitor for StylistSelectorVisitor<'a> {
|
||||||
|
|
||||||
fn visit_complex_selector(
|
fn visit_complex_selector(
|
||||||
&mut self,
|
&mut self,
|
||||||
_: SelectorIter<SelectorImpl>,
|
|
||||||
combinator: Option<Combinator>
|
combinator: Option<Combinator>
|
||||||
) -> bool {
|
) -> bool {
|
||||||
self.needs_revalidation =
|
self.needs_revalidation =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue