diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-08-07 18:30:12 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-08-07 18:31:17 +0200 |
commit | b67c8935eb60a078585d1c8f8eeded54a55a551a (patch) | |
tree | 657cd8c02db088d3aa839d4e28c56042251eb18d | |
parent | f8abce8b72bf3fb09d39d6c7d708a79d1b89c9db (diff) | |
download | servo-b67c8935eb60a078585d1c8f8eeded54a55a551a.tar.gz servo-b67c8935eb60a078585d1c8f8eeded54a55a551a.zip |
style: Remove outdated comments.
-rw-r--r-- | components/style/selector_map.rs | 14 |
1 files 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<T: SelectorMapEntry> SelectorMap<T> { /// /// The first non-None value returned from |f| is returned. #[inline(always)] -fn find_from_left<F, R>(mut iter: SelectorIter<SelectorImpl>, - mut f: F) - -> Option<R> - where F: FnMut(&Component<SelectorImpl>) -> Option<R>, +fn find_from_left<F, R>( + mut iter: SelectorIter<SelectorImpl>, + mut f: F +) -> Option<R> +where + F: FnMut(&Component<SelectorImpl>) -> Option<R>, { for ss in &mut iter { if let Some(r) = f(ss) { @@ -432,8 +434,6 @@ fn find_from_left<F, R>(mut iter: SelectorIter<SelectorImpl>, pub fn get_id_name(iter: SelectorIter<SelectorImpl>) -> Option<Atom> { 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<SelectorImpl>) pub fn get_class_name(iter: SelectorIter<SelectorImpl>) -> Option<Atom> { 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()); } |