diff options
| author | qiulaidongfeng <2645477756@qq.com> | 2025-08-13 22:33:14 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-09-05 08:15:02 -0700 |
| commit | 459b85ccaa30bbce4c22b2779672dfe402a2b2da (patch) | |
| tree | bda72a3741c2b47c4e83ac0aa0e17808010073f8 /src/cmd/fix/context.go | |
| parent | 87e72769fa74a2ef0bd81a3fd4febe75b8fc6731 (diff) | |
| download | go-459b85ccaa30bbce4c22b2779672dfe402a2b2da.tar.xz | |
cmd/fix: remove all functionality except for buildtag
For #73605
Change-Id: I4b46b5eb72471c215f2cc208c1b0cdd1fbdbf81a
Reviewed-on: https://go-review.googlesource.com/c/go/+/695855
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'src/cmd/fix/context.go')
| -rw-r--r-- | src/cmd/fix/context.go | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/cmd/fix/context.go b/src/cmd/fix/context.go index 1107f4d66c..fe2e095052 100644 --- a/src/cmd/fix/context.go +++ b/src/cmd/fix/context.go @@ -4,10 +4,6 @@ package main -import ( - "go/ast" -) - func init() { register(contextFix) } @@ -15,11 +11,7 @@ func init() { var contextFix = fix{ name: "context", date: "2016-09-09", - f: ctxfix, - desc: `Change imports of golang.org/x/net/context to context`, + f: noop, + desc: `Change imports of golang.org/x/net/context to context (removed)`, disabled: false, } - -func ctxfix(f *ast.File) bool { - return rewriteImport(f, "golang.org/x/net/context", "context") -} |
