style: Remove unneeded bounds in SelectorMap and related code.

MozReview-Commit-ID: CWwdVCwWijn
This commit is contained in:
Emilio Cobos Álvarez 2017-07-13 02:45:06 +02:00
parent ebfc8f5858
commit 9394ea9644
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 4 additions and 27 deletions

View file

@ -109,10 +109,6 @@ impl SelectorMapEntry for Dependency {
fn selector(&self) -> SelectorIter<SelectorImpl> {
self.selector.iter_from(self.selector_offset)
}
fn hashes(&self) -> &AncestorHashes {
&self.hashes
}
}
/// The same, but for state selectors, which can track more exactly what state
@ -128,11 +124,7 @@ pub struct StateDependency {
impl SelectorMapEntry for StateDependency {
fn selector(&self) -> SelectorIter<SelectorImpl> {
self.dep.selector.iter_from(self.dep.selector_offset)
}
fn hashes(&self) -> &AncestorHashes {
&self.dep.hashes
self.dep.selector()
}
}