mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Remove SelectorAndHashes.
This commit is contained in:
parent
dee4aea264
commit
445b8fb3e8
2 changed files with 1 additions and 27 deletions
|
@ -176,26 +176,6 @@ pub trait Parser<'i> {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Eq, Clone, Debug)]
|
||||
pub struct SelectorAndHashes<Impl: SelectorImpl> {
|
||||
pub selector: Selector<Impl>,
|
||||
pub hashes: AncestorHashes,
|
||||
}
|
||||
|
||||
impl<Impl: SelectorImpl> SelectorAndHashes<Impl> {
|
||||
pub fn new(selector: Selector<Impl>) -> Self {
|
||||
let hashes = AncestorHashes::new(&selector);
|
||||
Self::new_with_hashes(selector, hashes)
|
||||
}
|
||||
|
||||
pub fn new_with_hashes(selector: Selector<Impl>, hashes: AncestorHashes) -> Self {
|
||||
SelectorAndHashes {
|
||||
selector: selector,
|
||||
hashes: hashes,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Eq, Clone, Debug)]
|
||||
pub struct SelectorList<Impl: SelectorImpl>(pub Vec<Selector<Impl>>);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue