style: Remove Stylist::might_have_state_dependency.

We always know for sure whether we have a dependency on particular
event state bits, so just use has_state_dependency.
This commit is contained in:
Cameron McCormack 2017-10-05 09:43:57 +08:00
parent 21926e0008
commit 2f21070701
2 changed files with 2 additions and 8 deletions

View file

@ -625,12 +625,6 @@ impl Stylist {
}
}
/// Returns whether the given ElementState bit might be relied upon by a
/// selector of some rule in the stylist.
pub fn might_have_state_dependency(&self, state: ElementState) -> bool {
self.has_state_dependency(state)
}
/// Returns whether the given ElementState bit is relied upon by a selector
/// of some rule in the stylist.
pub fn has_state_dependency(&self, state: ElementState) -> bool {