Skip to content

Commit ce02968

Browse files
committed
Remove commented code.
1 parent 6d0c2f4 commit ce02968

File tree

1 file changed

+0
-16
lines changed
  • html5ever/src/tree_builder

1 file changed

+0
-16
lines changed

html5ever/src/tree_builder/mod.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -554,16 +554,6 @@ impl <'a, Handle: 'a> ActiveFormattingView<'a, Handle> {
554554
}
555555
}
556556

557-
/*impl <'a, Handle: 'a> IntoIterator for ActiveFormattingView<'a, Handle> {
558-
type Item = (usize, &'a FormatEntry<Handle>);
559-
//type IntoIter = std::iter::Iterator<Self::Item>;
560-
//type IntoIter = Rev<Enumerate<slice::eIter<'a, FormatEntry<Handle>>>>;
561-
type IntoIter = ActiveFormattingIter
562-
fn into_iter(self) -> Self::IntoIter {
563-
self.data.iter().eenumerate().rev()
564-
}
565-
}*/
566-
567557
pub struct ActiveFormattingIter<'a, Handle: 'a> {
568558
iter: Rev<Enumerate<slice::Iter<'a, FormatEntry<Handle>>>>,
569559
}
@@ -632,12 +622,6 @@ where
632622
ActiveFormattingView {
633623
data: Ref::map(self.active_formatting.borrow(), |a| &*a),
634624
}
635-
/*ActiveFormattingIter {
636-
iter: Ref::map(
637-
self.active_formatting.borrow(),
638-
|active_formatting| active_formatting.iter().enumerate().rev()
639-
),
640-
}*/
641625
}
642626

643627
fn position_in_active_formatting(&self, element: &Handle) -> Option<usize> {

0 commit comments

Comments
 (0)