mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
style: Remove a bit of unused code.
This commit is contained in:
parent
314f2ce714
commit
f48328edfe
1 changed files with 0 additions and 33 deletions
|
@ -1151,39 +1151,6 @@ impl ApplicableDeclarationBlock {
|
|||
}
|
||||
}
|
||||
|
||||
/// An iterator over the declarations that a given block represent, which is
|
||||
/// effectively a filter by importance.
|
||||
pub struct ApplicableDeclarationBlockIter<'a> {
|
||||
iter: slice::Iter<'a, (PropertyDeclaration, Importance)>,
|
||||
importance: Importance,
|
||||
}
|
||||
|
||||
impl<'a> Iterator for ApplicableDeclarationBlockIter<'a> {
|
||||
type Item = &'a PropertyDeclaration;
|
||||
|
||||
#[inline]
|
||||
fn next(&mut self) -> Option<Self::Item> {
|
||||
while let Some(&(ref declaration, importance)) = self.iter.next() {
|
||||
if importance == self.importance {
|
||||
return Some(declaration)
|
||||
}
|
||||
}
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> DoubleEndedIterator for ApplicableDeclarationBlockIter<'a> {
|
||||
#[inline]
|
||||
fn next_back(&mut self) -> Option<Self::Item> {
|
||||
while let Some(&(ref declaration, importance)) = self.iter.next_back() {
|
||||
if importance == self.importance {
|
||||
return Some(declaration)
|
||||
}
|
||||
}
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn find_push<Str: Eq + Hash>(map: &mut FnvHashMap<Str, Vec<Rule>>, key: Str,
|
||||
value: Rule) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue