]> Cypherpunks repositories - gostls13.git/commitdiff
test: remove unused code in run.go
authorzhangjian <zj.cosmos@gmail.com>
Fri, 15 Jul 2022 14:08:49 +0000 (14:08 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 12 Aug 2022 18:15:28 +0000 (18:15 +0000)
Change-Id: Ie2a77a9643697cfda4376db606711c09da220405
GitHub-Last-Rev: ff1cf0b9d831d626f7a8e0e80340d908ce5c32cf
GitHub-Pull-Request: golang/go#53902
Reviewed-on: https://go-review.googlesource.com/c/go/+/417734
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
test/run.go

index 3665a186a4a9ca1dedb465d2c812955222ed23a0..559caee784f2256595726475e7b5741367f7274a 100644 (file)
@@ -1887,14 +1887,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)