summaryrefslogtreecommitdiffstats
path: root/helpers/path.go
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/path.go')
-rw-r--r--helpers/path.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/helpers/path.go b/helpers/path.go
index 2d0e8aa64..bf7e3bf99 100644
--- a/helpers/path.go
+++ b/helpers/path.go
@@ -77,17 +77,6 @@ func (filepathBridge) Separator() string {
var fpb filepathBridge
-// segmentReplacer replaces some URI-reserved characters in a path segments.
-var segmentReplacer = strings.NewReplacer("/", "-", "#", "-")
-
-// MakeSegment returns a copy of string s that is appropriate for a path
-// segment. MakeSegment is similar to MakePath but disallows the '/' and
-// '#' characters because of their reserved meaning in URIs.
-func (p *PathSpec) MakeSegment(s string) string {
- return p.MakePathSanitized(segmentReplacer.Replace(s))
-
-}
-
// MakePath takes a string with any characters and replace it
// so the string could be used in a path.
// It does so by creating a Unicode-sanitized string, with the spaces replaced,