diff options
Diffstat (limited to 'src/internal/safefilepath/path_plan9.go')
-rw-r--r-- | src/internal/safefilepath/path_plan9.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/internal/safefilepath/path_plan9.go b/src/internal/safefilepath/path_plan9.go deleted file mode 100644 index 55627c5102..0000000000 --- a/src/internal/safefilepath/path_plan9.go +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2023 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package safefilepath - -import "internal/bytealg" - -func localize(path string) (string, error) { - if path[0] == '#' || bytealg.IndexByteString(path, 0) >= 0 { - return "", errInvalidPath - } - return path, nil -} |