style: Remove unused SelectorImpl::pseudo_class_state_flag.

This commit is contained in:
Cameron McCormack 2017-10-05 10:41:46 +08:00
parent 2f21070701
commit c22dba0b87
2 changed files with 0 additions and 13 deletions

View file

@ -433,13 +433,6 @@ impl SelectorImpl {
fun(pseudo.clone())
}
}
/// Returns the relevant state flag for a given non-tree-structural
/// pseudo-class.
pub fn pseudo_class_state_flag(pc: &NonTSPseudoClass) -> ElementState {
pc.state_flag()
}
}
fn utf16_to_ascii_lowercase(unit: u16) -> u16 {

View file

@ -561,12 +561,6 @@ impl SelectorImpl {
fun(PseudoElement::from_eager_index(i));
}
}
/// Returns the pseudo-class state flag for selector matching.
#[inline]
pub fn pseudo_class_state_flag(pc: &NonTSPseudoClass) -> ElementState {
pc.state_flag()
}
}
/// A map from elements to snapshots for the Servo style back-end.