From b67c8935eb60a078585d1c8f8eeded54a55a551a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 7 Aug 2017 18:30:12 +0200 Subject: [PATCH] style: Remove outdated comments. --- components/style/selector_map.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/components/style/selector_map.rs b/components/style/selector_map.rs index 193196c488a..feba256584b 100644 --- a/components/style/selector_map.rs +++ b/components/style/selector_map.rs @@ -403,10 +403,12 @@ impl SelectorMap { /// /// The first non-None value returned from |f| is returned. #[inline(always)] -fn find_from_left(mut iter: SelectorIter, - mut f: F) - -> Option - where F: FnMut(&Component) -> Option, +fn find_from_left( + mut iter: SelectorIter, + mut f: F +) -> Option +where + F: FnMut(&Component) -> Option, { for ss in &mut iter { if let Some(r) = f(ss) { @@ -432,8 +434,6 @@ fn find_from_left(mut iter: SelectorIter, pub fn get_id_name(iter: SelectorIter) -> Option { find_from_left(iter, |ss| { - // TODO(pradeep): Implement case-sensitivity based on the - // document type and quirks mode. if let Component::ID(ref id) = *ss { return Some(id.clone()); } @@ -446,8 +446,6 @@ pub fn get_id_name(iter: SelectorIter) pub fn get_class_name(iter: SelectorIter) -> Option { find_from_left(iter, |ss| { - // TODO(pradeep): Implement case-sensitivity based on the - // document type and quirks mode. if let Component::Class(ref class) = *ss { return Some(class.clone()); }