cmd/release: remove code that removes nonexistent oldlink binary
The oldlink binary is not present in the Go 1.16 source tree,
the oldest Go major version we still make minor releases for.
Undo the change added in CL 242643 as it is no longer needed.
Updates golang/go#39509.
Change-Id: I83ef35de022641eb354487600b3b6d705fd9bcf8
Reviewed-on: https://go-review.googlesource.com/c/build/+/384715
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
diff --git a/cmd/release/release.go b/cmd/release/release.go
index 3a4194d..50057f0 100644
--- a/cmd/release/release.go
+++ b/cmd/release/release.go
@@ -523,14 +523,6 @@
if err := client.RemoveAll(ctx, b.toolDir()+"/api"); err != nil {
return err
}
- // The oldlink tool is used for debugging differences during
- // testing of the linker rewrite, and can be built by users
- // if necessary. See issue 39509.
- // This can be removed when oldlink is gone, likely once Go 1.16
- // is no longer supported.
- if err := client.RemoveAll(ctx, b.toolDir()+"/oldlink"); err != nil {
- return err
- }
// Remove go/pkg/${GOOS}_${GOARCH}/cmd. This saves a bunch of
// space, and users don't typically rebuild cmd/compile,
// cmd/link, etc. If they want to, they still can, but they'll