diff --git a/src/os/removeall_noat.go b/src/os/removeall_noat.go index 6474d2d54e4..c1b43e38075 100644 --- a/src/os/removeall_noat.go +++ b/src/os/removeall_noat.go @@ -27,7 +27,6 @@ func removeAll(path string) error { } // Simple case: if Remove works, we're done. - path = fixLongPath(path) err := Remove(path) if err == nil || IsNotExist(err) { return nil diff --git a/src/os/removeall_test.go b/src/os/removeall_test.go index 6fb31c2d8f1..8a71f687ed0 100644 --- a/src/os/removeall_test.go +++ b/src/os/removeall_test.go @@ -206,26 +206,6 @@ func TestRemoveAllLongPath(t *testing.T) { } } -func TestRemoveAllLongPathWindows(t *testing.T) { - startPath, err := ioutil.TempDir("", "TestRemoveAllLongPath-") - if err != nil { - t.Fatalf("Could not create TempDir: %s", err) - } - defer RemoveAll(startPath) - - // Make a long path - err = MkdirAll(filepath.Join(startPath, "foo", "bar", strings.Repeat("a", 150), - strings.Repeat("b", 150)), ModePerm) - if err != nil { - t.Fatal(err) - } - - err = RemoveAll("foo") - if err != nil { - t.Fatal(err) - } -} - func TestRemoveAllDot(t *testing.T) { prevDir, err := Getwd() if err != nil {