]> Cypherpunks repositories - gostls13.git/commitdiff
go/build: remove unused fileInfo.embedErr field
authorIan Lance Taylor <iant@golang.org>
Fri, 8 Apr 2022 23:23:35 +0000 (16:23 -0700)
committerIan Lance Taylor <iant@golang.org>
Sat, 9 Apr 2022 00:07:58 +0000 (00:07 +0000)
Change-Id: If86a0402dae32c57d07545ee6d818010e0e4b5ee
Reviewed-on: https://go-review.googlesource.com/c/go/+/399255
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
src/go/build/build.go
src/go/build/read.go

index 2666b8acb78c83abc7862f6c996d41c0ffdbe12f..3b09cce84b692424c4dd86f34b457ddbbf067322 100644 (file)
@@ -1380,7 +1380,6 @@ type fileInfo struct {
        parseErr error
        imports  []fileImport
        embeds   []fileEmbed
-       embedErr error
 }
 
 type fileImport struct {
index de5c33a4f849ce337fabc3a62920ba36fb552563..52adfeab9ae14c5196d5b994b4b0e3e10f0a5be9 100644 (file)
@@ -390,7 +390,7 @@ func readComments(f io.Reader) ([]byte, error) {
 // readGoInfo expects a Go file as input and reads the file up to and including the import section.
 // It records what it learned in *info.
 // If info.fset is non-nil, readGoInfo parses the file and sets info.parsed, info.parseErr,
-// info.imports, info.embeds, and info.embedErr.
+// info.imports and info.embeds.
 //
 // It only returns an error if there are problems reading the file,
 // not for syntax errors in the file itself.