mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove unused code from selector and style crates
This commit is contained in:
parent
8dc7a25893
commit
642b7c3ea1
9 changed files with 1 additions and 101 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue