style: Remove unused ComputedValues::has_visited_style.

This commit is contained in:
Emilio Cobos Álvarez 2017-10-01 13:26:32 +02:00
parent ab8dcf0a18
commit 9305fadc9f
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -2095,11 +2095,6 @@ impl ComputedValues {
self.flags.contains(IS_STYLE_IF_VISITED)
}
/// Whether there is a visited style.
pub fn has_visited_style(&self) -> bool {
self.visited_style.is_some()
}
/// Gets a reference to the rule node. Panic if no rule node exists.
pub fn rules(&self) -> &StrongRuleNode {
self.rules.as_ref().unwrap()