diff options
| author | 2026-04-02 06:23:30 +0000 | |
|---|---|---|
| committer | 2026-04-02 06:28:39 +0000 | |
| commit | a041d523de389b65b98a5373a8034041db2a8d83 (patch) | |
| tree | 7b423dc735f463be616045f2c3c2095a7737aca7 /object/tree/path_split.go | |
| parent | research: Add dynamic pack resources (diff) | |
| signature | No signature | |
*: Remove
Diffstat (limited to 'object/tree/path_split.go')
| -rw-r--r-- | object/tree/path_split.go | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/object/tree/path_split.go b/object/tree/path_split.go deleted file mode 100644 index c147dd25..00000000 --- a/object/tree/path_split.go +++ /dev/null @@ -1,19 +0,0 @@ -package tree - -import ( - "bytes" -) - -// SplitPath splits one slash-separated tree path into components. -func SplitPath(path []byte) [][]byte { - if len(path) == 0 { - return nil - } - - parts := bytes.Split(path, []byte{'/'}) - for i := range parts { - parts[i] = bytes.Clone(parts[i]) - } - - return parts -} |
