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:
parent
bacca7a1d2
commit
9f48a04971
1 changed files with 0 additions and 18 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue