mcp: remove unused functions (cleanup) (#207)

Remove a few functions that were flagged by gopls as unused. We can
always add them back if necessary.
This commit is contained in:
Robert Findley 2025-07-30 14:59:47 -04:00 • committed by GitHub
commit 9f48a04971
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -423,10 +423,6 @@ func (s *Server) lookupResourceHandler(uri string) (ResourceHandler, string, boo
// Lexical path traversal attacks, where the path has ".." elements that escape dir,
// are always caught. Go 1.24 and above also protects against symlink-based attacks,
// where symlinks under dir lead out of the tree.
func (s *Server) fileResourceHandler(dir string) ResourceHandler {
return fileResourceHandler(dir)
}
func fileResourceHandler(dir string) ResourceHandler {
// Convert dir to an absolute path.
dirFilepath, err := filepath.Abs(dir)