diff options
Diffstat (limited to 'components/style/animation.rs')
-rw-r--r-- | components/style/animation.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/components/style/animation.rs b/components/style/animation.rs index 6fac559a777..a325b46e6cd 100644 --- a/components/style/animation.rs +++ b/components/style/animation.rs @@ -181,14 +181,6 @@ impl KeyframesAnimationState { self.current_direction = old_direction; self.started_at = new_started_at; } - - #[inline] - fn is_paused(&self) -> bool { - match self.running_state { - KeyframesRunningState::Paused(..) => true, - KeyframesRunningState::Running => false, - } - } } impl fmt::Debug for KeyframesAnimationState { @@ -245,15 +237,6 @@ impl Animation { } } - /// Whether this animation is paused. A transition can never be paused. - #[inline] - pub fn is_paused(&self) -> bool { - match *self { - Animation::Transition(..) => false, - Animation::Keyframes(_, _, _, ref state) => state.is_paused(), - } - } - /// Whether this animation is a transition. #[inline] pub fn is_transition(&self) -> bool { |