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
|
@ -74,10 +74,4 @@ pub trait Element: Sized {
|
|||
/// Note: this can be false even if `.parent_element()` is `None`
|
||||
/// if the parent node is a `DocumentFragment`.
|
||||
fn is_root(&self) -> bool;
|
||||
|
||||
// Ordinarily I wouldn't use callbacks like this, but the alternative is
|
||||
// really messy, since there is a `JSRef` and a `RefCell` involved. Maybe
|
||||
// in the future when we have associated types and/or a more convenient
|
||||
// JS GC story... --pcwalton
|
||||
fn each_class<F>(&self, callback: F) where F: FnMut(&<Self::Impl as SelectorImpl>::ClassName);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue