mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Remove outdated comments.
This commit is contained in:
parent
f8abce8b72
commit
b67c8935eb
1 changed files with 6 additions and 8 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue