style: Remove SelectorAndHashes.

This commit is contained in:
Emilio Cobos Álvarez 2017-07-13 04:01:44 +02:00
parent dee4aea264
commit 445b8fb3e8
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 1 additions and 27 deletions

View file

@ -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>>);