From c943f5a847c94d3c0381920f5e07583a4deed74b Mon Sep 17 00:00:00 2001 From: Ben Brandt Date: Thu, 7 Aug 2025 17:59:55 +0200 Subject: [PATCH] remove glob template --- crates/agent2/src/templates.rs | 13 ------------- crates/agent2/src/templates/glob.hbs | 8 -------- 2 files changed, 21 deletions(-) delete mode 100644 crates/agent2/src/templates/glob.hbs diff --git a/crates/agent2/src/templates.rs b/crates/agent2/src/templates.rs index e634d414d6..a63f0ad206 100644 --- a/crates/agent2/src/templates.rs +++ b/crates/agent2/src/templates.rs @@ -33,19 +33,6 @@ pub trait Template: Sized { } } -#[expect( - dead_code, - reason = "Marked as unused by Rust 1.89 and left as is as of 07 Aug 2025 to let AI team address it." -)] -#[derive(Serialize)] -pub struct GlobTemplate { - pub project_roots: String, -} - -impl Template for GlobTemplate { - const TEMPLATE_NAME: &'static str = "glob.hbs"; -} - #[derive(Serialize)] pub struct SystemPromptTemplate<'a> { #[serde(flatten)] diff --git a/crates/agent2/src/templates/glob.hbs b/crates/agent2/src/templates/glob.hbs deleted file mode 100644 index 3bf992b093..0000000000 --- a/crates/agent2/src/templates/glob.hbs +++ /dev/null @@ -1,8 +0,0 @@ -Find paths on disk with glob patterns. - -Assume that all glob patterns are matched in a project directory with the following entries. - -{{project_roots}} - -When searching with patterns that begin with literal path components, e.g. `foo/bar/**/*.rs`, be -sure to anchor them with one of the directories listed above.