Remove unused code from selector and style crates

This commit is contained in:
est31 2019-06-07 10:49:07 +02:00
parent 8dc7a25893
commit 642b7c3ea1
9 changed files with 1 additions and 101 deletions

View file

@ -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 {