aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/animation.rs
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2019-06-07 10:49:07 +0200
committerest31 <MTest31@outlook.com>2019-06-07 15:14:21 +0200
commit642b7c3ea19cefbedbc881894e5679e7a5dd33ce (patch)
tree3bcba1097e72694541acfd2a2acc25c726b078e6 /components/style/animation.rs
parent8dc7a25893cbe9a2c958966618d28757201899b6 (diff)
downloadservo-642b7c3ea19cefbedbc881894e5679e7a5dd33ce.tar.gz
servo-642b7c3ea19cefbedbc881894e5679e7a5dd33ce.zip
Remove unused code from selector and style crates
Diffstat (limited to 'components/style/animation.rs')
-rw-r--r--components/style/animation.rs17
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 {