]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal, go/build: remove unused errGoBuildWithoutBuild
authorTobias Klauser <tklauser@distanz.ch>
Mon, 19 Sep 2022 08:50:11 +0000 (10:50 +0200)
committerGopher Robot <gobot@golang.org>
Mon, 26 Sep 2022 16:28:50 +0000 (16:28 +0000)
Last use was removed by CL 240607.

Change-Id: Icfe9e477c6035823bd676a2ff28e1ac202dd991e
Reviewed-on: https://go-review.googlesource.com/c/go/+/431662
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>

src/cmd/go/internal/imports/build.go
src/cmd/go/internal/modindex/build.go
src/go/build/build.go

index bbe08da6b36e9eaa021ebd8a8dee9c1e57952b5b..be308ceeec6cd1bb9703eda17bf54cb8860d4c7b 100644 (file)
@@ -36,8 +36,7 @@ var (
 
        goBuildComment = []byte("//go:build")
 
-       errGoBuildWithoutBuild = errors.New("//go:build comment without // +build comment")
-       errMultipleGoBuild     = errors.New("multiple //go:build comments")
+       errMultipleGoBuild = errors.New("multiple //go:build comments")
 )
 
 func isGoBuildComment(line []byte) bool {
index d6d4ea371ac2b5cd862a784f79fe18ddb0281ca4..8903c156bbaadd872332258239b85e346f3412fe 100644 (file)
@@ -558,8 +558,7 @@ var (
 
        goBuildComment = []byte("//go:build")
 
-       errGoBuildWithoutBuild = errors.New("//go:build comment without // +build comment")
-       errMultipleGoBuild     = errors.New("multiple //go:build comments")
+       errMultipleGoBuild = errors.New("multiple //go:build comments")
 )
 
 func isGoBuildComment(line []byte) bool {
index 4bc34086b35f1c5a691d40dd17f457cce8efcbab..36d9165125a5557457816ce6173e7bbec13564bc 100644 (file)
@@ -1487,8 +1487,7 @@ var (
 
        goBuildComment = []byte("//go:build")
 
-       errGoBuildWithoutBuild = errors.New("//go:build comment without // +build comment")
-       errMultipleGoBuild     = errors.New("multiple //go:build comments")
+       errMultipleGoBuild = errors.New("multiple //go:build comments")
 )
 
 func isGoBuildComment(line []byte) bool {