From c1fc9dfe7fe6cf7efda2fa7a65f7d7f64305a330 Mon Sep 17 00:00:00 2001 From: Katie Geer Date: Wed, 8 Apr 2026 12:17:02 -0700 Subject: [PATCH] Remove redundant use telemetry import from sidebar --- crates/agent_ui/src/agent_panel.rs | 7 ------- crates/sidebar/src/sidebar.rs | 5 +++-- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rs index 04d545c1ce964cad45a67018be38ea25eca7c488..3d1847f8f8afe813a4fcbc1a396254db58c5713c 100644 --- a/crates/agent_ui/src/agent_panel.rs +++ b/crates/agent_ui/src/agent_panel.rs @@ -3348,13 +3348,6 @@ fn agent_panel_dock_position(cx: &App) -> DockPosition { AgentSettings::get_global(cx).dock.into() } -fn agent_panel_side_str(cx: &App) -> &'static str { - match agent_panel_dock_position(cx) { - DockPosition::Left => "left", - DockPosition::Right | DockPosition::Bottom => "right", - } -} - pub enum AgentPanelEvent { ActiveViewChanged, ThreadFocused, diff --git a/crates/sidebar/src/sidebar.rs b/crates/sidebar/src/sidebar.rs index a658d4dd59c0b2e54c629664c1ae09ab711d3dbd..bbbee2079b4147c014cae98e59b060bf8e090a6f 100644 --- a/crates/sidebar/src/sidebar.rs +++ b/crates/sidebar/src/sidebar.rs @@ -32,7 +32,6 @@ use settings::Settings as _; use std::collections::{HashMap, HashSet}; use std::mem; use std::rc::Rc; -use telemetry; use theme::ActiveTheme; use ui::{ AgentThreadStatus, CommonAnimationExt, ContextMenu, Divider, HighlightedLabel, KeyBinding, @@ -2529,7 +2528,9 @@ impl Sidebar { panel.clear_active_thread(window, cx); }); } - }); + } + } + } return; }