diff --git a/src/cmd/go/go_test.go b/src/cmd/go/go_test.go index 1c4374da4b..1e28bec92d 100644 --- a/src/cmd/go/go_test.go +++ b/src/cmd/go/go_test.go @@ -791,19 +791,6 @@ func (tg *testgoData) mustNotExist(path string) { } } -// mustHaveContent succeeds if filePath is a path to a file, -// and that file is readable and not empty. -func (tg *testgoData) mustHaveContent(filePath string) { - tg.mustExist(filePath) - f, err := os.Stat(filePath) - if err != nil { - tg.t.Fatal(err) - } - if f.Size() == 0 { - tg.t.Fatalf("expected %s to have data, but is empty", filePath) - } -} - // wantExecutable fails with msg if path is not executable. func (tg *testgoData) wantExecutable(path, msg string) { tg.t.Helper()