mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove unused selectors::Element::each_class
This commit is contained in:
parent
9376abdd2c
commit
c5e37f3d2c
6 changed files with 24 additions and 57 deletions
|
@ -2481,18 +2481,6 @@ impl<'a> ::selectors::Element for Root<Element> {
|
|||
Element::has_class(&**self, name)
|
||||
}
|
||||
|
||||
fn each_class<F>(&self, mut callback: F)
|
||||
where F: FnMut(&Atom)
|
||||
{
|
||||
if let Some(ref attr) = self.get_attribute(&ns!(), &local_name!("class")) {
|
||||
let tokens = attr.value();
|
||||
let tokens = tokens.as_tokens();
|
||||
for token in tokens {
|
||||
callback(token);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn is_html_element_in_html_document(&self) -> bool {
|
||||
self.html_element_in_html_document()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue