From db7183ccf9e7c245872864833e78a469e8747031 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 8 Apr 2022 16:23:35 -0700 Subject: [PATCH] go/build: remove unused fileInfo.embedErr field Change-Id: If86a0402dae32c57d07545ee6d818010e0e4b5ee Reviewed-on: https://go-review.googlesource.com/c/go/+/399255 Trust: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Gopher Robot Reviewed-by: Dmitri Shuralyov --- src/go/build/build.go | 1 - src/go/build/read.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/go/build/build.go b/src/go/build/build.go index 2666b8acb7..3b09cce84b 100644 --- a/src/go/build/build.go +++ b/src/go/build/build.go @@ -1380,7 +1380,6 @@ type fileInfo struct { parseErr error imports []fileImport embeds []fileEmbed - embedErr error } type fileImport struct { diff --git a/src/go/build/read.go b/src/go/build/read.go index de5c33a4f8..52adfeab9a 100644 --- a/src/go/build/read.go +++ b/src/go/build/read.go @@ -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. -- 2.50.0