Skip to content

Commit c44ce2e

Browse files
chore: remove unused filterResourcesByURI function
1 parent 53a6720 commit c44ce2e

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

pkg/inventory/filters.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -203,17 +203,6 @@ func (r *Inventory) filterToolsByName(name string) []ServerTool {
203203
return result
204204
}
205205

206-
// filterResourcesByURI returns resource templates matching the given URI pattern.
207-
// Uses linear scan - optimized for single-lookup per-request scenarios (ForMCPRequest).
208-
func (r *Inventory) filterResourcesByURI(uri string) []ServerResourceTemplate {
209-
for i := range r.resourceTemplates {
210-
if r.resourceTemplates[i].Template.URITemplate == uri {
211-
return []ServerResourceTemplate{r.resourceTemplates[i]}
212-
}
213-
}
214-
return []ServerResourceTemplate{}
215-
}
216-
217206
// filterPromptsByName returns prompts matching the given name.
218207
// Uses linear scan - optimized for single-lookup per-request scenarios (ForMCPRequest).
219208
func (r *Inventory) filterPromptsByName(name string) []ServerPrompt {

0 commit comments

Comments
 (0)