From ff1cf0b9d831d626f7a8e0e80340d908ce5c32cf Mon Sep 17 00:00:00 2001 From: zhangjian Date: Fri, 15 Jul 2022 21:59:48 +0800 Subject: [PATCH] test: remove unused code in run.go --- test/run.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/test/run.go b/test/run.go index cb1622ccc9..7ccb9abd9d 100644 --- a/test/run.go +++ b/test/run.go @@ -1867,14 +1867,6 @@ func checkShouldTest() { assert(shouldTest("// +build !windows !plan9", "windows", "amd64")) } -func getenv(key, def string) string { - value := os.Getenv(key) - if value != "" { - return value - } - return def -} - // overlayDir makes a minimal-overhead copy of srcRoot in which new files may be added. func overlayDir(dstRoot, srcRoot string) error { dstRoot = filepath.Clean(dstRoot)