]> Cypherpunks repositories - gostls13.git/commitdiff
src/cmd/go/internal/load: remove PackageError.Hard
authorMichael Matloob <matloob@golang.org>
Tue, 3 Sep 2024 15:26:09 +0000 (11:26 -0400)
committerMichael Matloob <matloob@golang.org>
Fri, 6 Sep 2024 18:32:48 +0000 (18:32 +0000)
This field isn't actually used. The last usage was deleted in CL 518775
and even then it wasn't actually being set.

Change-Id: Ifbe9da9c2a6d81a40c136a60028902176f443588
Reviewed-on: https://go-review.googlesource.com/c/go/+/610255
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/cmd/go/internal/load/pkg.go

index 17bba88f795990933e220cf4120981bf4bcddf0f..9f3c91459753af1251dfccc52ed69e8b957be68d 100644 (file)
@@ -459,7 +459,6 @@ type PackageError struct {
        Pos              string   // position of error
        Err              error    // the error itself
        IsImportCycle    bool     // the error is an import cycle
-       Hard             bool     // whether the error is soft or hard; soft errors are ignored in some places
        alwaysPrintStack bool     // whether to always print the ImportStack
 }