style: Remove get_animation_rule_by_cascade.

It's pretty useless.
This commit is contained in:
Emilio Cobos Álvarez 2018-02-24 21:00:42 +01:00
parent 8d34aacb3b
commit c5bfc81b74
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 15 additions and 36 deletions

View file

@ -1084,17 +1084,6 @@ impl<'le> TElement for GeckoElement<'le> {
}
}
fn get_animation_rule_by_cascade(
&self,
cascade_level: ServoCascadeLevel,
) -> Option<Arc<Locked<PropertyDeclarationBlock>>> {
match cascade_level {
ServoCascadeLevel::Animations => self.get_animation_rule(),
ServoCascadeLevel::Transitions => self.get_transition_rule(),
_ => panic!("Unsupported cascade level for getting the animation rule")
}
}
fn get_animation_rule(
&self,
) -> Option<Arc<Locked<PropertyDeclarationBlock>>> {