From 46c738d724911d13e9fbcdca73641dd0cfc1089f Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Tue, 8 Apr 2025 16:37:14 -0400 Subject: [PATCH] Delete unused impl --- crates/agent/src/active_thread.rs | 10 ---------- crates/assistant_tool/src/assistant_tool.rs | 8 -------- 2 files changed, 18 deletions(-) diff --git a/crates/agent/src/active_thread.rs b/crates/agent/src/active_thread.rs index 5da6726532..a016e5d416 100644 --- a/crates/agent/src/active_thread.rs +++ b/crates/agent/src/active_thread.rs @@ -76,16 +76,6 @@ struct RenderedToolUse { output: Entity, } -impl From<&RenderedToolUse> for assistant_tool::RenderedToolUse { - fn from(source: &RenderedToolUse) -> Self { - Self { - label: source.label.entity_id(), - input: source.input.entity_id(), - output: source.output.entity_id(), - } - } -} - impl RenderedMessage { fn from_segments( segments: &[MessageSegment], diff --git a/crates/assistant_tool/src/assistant_tool.rs b/crates/assistant_tool/src/assistant_tool.rs index 4efcd512d9..cfbad34fe0 100644 --- a/crates/assistant_tool/src/assistant_tool.rs +++ b/crates/assistant_tool/src/assistant_tool.rs @@ -20,14 +20,6 @@ pub use crate::action_log::*; pub use crate::tool_registry::*; pub use crate::tool_working_set::*; -/// A rendered tool use containing styled markdown elements for UI representation. -#[derive(Clone)] -pub struct RenderedToolUse { - pub label: EntityId, - pub input: EntityId, - pub output: EntityId, -} - pub fn init(cx: &mut App) { ToolRegistry::default_global(cx); }