diff options
Diffstat (limited to 'src/app/mod.rs')
| -rw-r--r-- | src/app/mod.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/app/mod.rs b/src/app/mod.rs index b2aa4ff2..c8c8113a 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -33,9 +33,6 @@ use std::sync::Arc; use std::time::{Duration, Instant}; const MIN_RENDER_INTERVAL: Duration = Duration::from_millis(16); -pub(crate) const ANIMATION_INTERVAL: Duration = Duration::from_millis(16); -pub(crate) const HEADLESS_ANIMATION_INTERVAL: Duration = Duration::from_millis(128); -pub(crate) const HEADLESS_ANIMATION_TICK_STEP: u32 = 8; pub(crate) const SELECTION_AUTOSCROLL_INTERVAL: Duration = Duration::from_millis(30); const RESIZE_POLL_INTERVAL: Duration = Duration::from_millis(100); const GIT_REMOTE_STATUS_REFRESH_INTERVAL: Duration = Duration::from_millis(1500); @@ -125,7 +122,6 @@ pub struct App { pub(crate) last_pane_click: Option<PaneClickState>, pub(crate) pending_url_click_sources: HashSet<InputSourceId>, pub(crate) next_resize_poll: Instant, - pub(crate) next_animation_tick: Option<Instant>, pub(crate) next_auto_update_check: Option<Instant>, pub(crate) next_agent_manifest_update_check: Option<Instant>, pub(crate) update_version_check_enabled: bool, @@ -664,7 +660,6 @@ impl App { local_sound_playback: true, toast_config: config.ui.toast.clone(), keybinds: config.keybinds(), - spinner_tick: 0, palette: theme_palette, theme_name, theme_runtime, @@ -753,7 +748,6 @@ impl App { last_pane_click: None, pending_url_click_sources: HashSet::new(), next_resize_poll: Instant::now() + RESIZE_POLL_INTERVAL, - next_animation_tick: None, next_auto_update_check: version_check_enabled .then_some(Instant::now() + AUTO_UPDATE_CHECK_INTERVAL), next_agent_manifest_update_check: manifest_check_enabled @@ -1046,7 +1040,6 @@ impl App { } let now = Instant::now(); - self.sync_animation_timer(now); self.sync_host_mouse_capture(&mut host_mouse_capture_active)?; self.sync_host_keyboard_report_all(&mut host_keyboard_report_all_active)?; @@ -4672,7 +4665,6 @@ mod tests { app.next_resize_poll = now - Duration::from_millis(1); app.config_diagnostic_deadline = None; app.toast_deadline = None; - app.next_animation_tick = None; app.next_auto_update_check = None; app.session_save_deadline = None; app.state.workspaces.clear(); @@ -4764,7 +4756,6 @@ mod tests { let now = Instant::now(); app.next_resize_poll = now + Duration::from_millis(300); app.selection_autoscroll_deadline = Some(now + Duration::from_millis(5)); - app.next_animation_tick = Some(now + Duration::from_millis(100)); app.session_save_deadline = Some(now + Duration::from_millis(200)); assert_eq!( app.next_loop_deadline(now, false), |
