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

@ -19,7 +19,6 @@ use media_queries::Device;
use properties::{AnimationRules, ComputedValues, PropertyDeclarationBlock};
#[cfg(feature = "gecko")] use properties::LonghandId;
#[cfg(feature = "gecko")] use properties::animated_properties::AnimationValue;
use rule_tree::CascadeLevel;
use selector_parser::{AttrValue, PseudoClassStringArg, PseudoElement, SelectorImpl};
use selectors::Element as SelectorsElement;
use selectors::matching::{ElementSelectorFlags, QuirksMode, VisitedHandlingMode};
@ -443,13 +442,6 @@ pub trait TElement
None
}
/// Get this element's animation rule by the cascade level.
fn get_animation_rule_by_cascade(&self,
_cascade_level: CascadeLevel)
-> Option<Arc<Locked<PropertyDeclarationBlock>>> {
None
}
/// Get the combined animation and transition rules.
fn get_animation_rules(&self) -> AnimationRules {
if !self.may_have_animations() {