diff options
Diffstat (limited to 'src/os/path_windows.go')
| -rw-r--r-- | src/os/path_windows.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/os/path_windows.go b/src/os/path_windows.go index 3356908a36..ec9a87274d 100644 --- a/src/os/path_windows.go +++ b/src/os/path_windows.go @@ -214,14 +214,3 @@ func fixLongPath(path string) string { } return string(pathbuf[:w]) } - -// fixRootDirectory fixes a reference to a drive's root directory to -// have the required trailing slash. -func fixRootDirectory(p string) string { - if len(p) == len(`\\?\c:`) { - if IsPathSeparator(p[0]) && IsPathSeparator(p[1]) && p[2] == '?' && IsPathSeparator(p[3]) && p[5] == ':' { - return p + `\` - } - } - return p -} |
