diff options
Diffstat (limited to 'libgo/go/path/path.go')
-rw-r--r-- | libgo/go/path/path.go | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/libgo/go/path/path.go b/libgo/go/path/path.go index bdb85c6b92a..98a6d529229 100644 --- a/libgo/go/path/path.go +++ b/libgo/go/path/path.go @@ -206,13 +206,5 @@ func IsAbs(path string) bool { // slash. func Dir(path string) string { dir, _ := Split(path) - dir = Clean(dir) - last := len(dir) - 1 - if last > 0 && dir[last] == '/' { - dir = dir[:last] - } - if dir == "" { - dir = "." - } - return dir + return Clean(dir) } |