aboutsummaryrefslogtreecommitdiff
path: root/object/fetch/treefs_path.go
diff options
context:
space:
mode:
Diffstat (limited to 'object/fetch/treefs_path.go')
-rw-r--r--object/fetch/treefs_path.go20
1 files changed, 1 insertions, 19 deletions
diff --git a/object/fetch/treefs_path.go b/object/fetch/treefs_path.go
index 7aa31c7f..a2dc3155 100644
--- a/object/fetch/treefs_path.go
+++ b/object/fetch/treefs_path.go
@@ -1,29 +1,11 @@
package fetch
-import (
- "io/fs"
- "strings"
-)
+import "io/fs"
func treeFSValidPath(name string) bool {
return name == "." || fs.ValidPath(name)
}
-func treeFSSplitPath(name string) [][]byte {
- if name == "." {
- return nil
- }
-
- parts := strings.Split(name, "/")
-
- out := make([][]byte, len(parts))
- for i, part := range parts {
- out[i] = []byte(part)
- }
-
- return out
-}
-
func treeFSPathError(op treeFSOp, path string, err error) error {
return &fs.PathError{Op: op.pathErrorOp(), Path: path, Err: err}
}