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/egltype.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/egltype.go')
| -rw-r--r-- | src/cmd/fix/egltype.go | 42 |
1 files changed, 4 insertions, 38 deletions
diff --git a/src/cmd/fix/egltype.go b/src/cmd/fix/egltype.go index a096db6665..8ba66efb06 100644 --- a/src/cmd/fix/egltype.go +++ b/src/cmd/fix/egltype.go @@ -4,10 +4,6 @@ package main -import ( - "go/ast" -) - func init() { register(eglFixDisplay) register(eglFixConfig) @@ -16,45 +12,15 @@ func init() { var eglFixDisplay = fix{ name: "egl", date: "2018-12-15", - f: eglfixDisp, - desc: `Fixes initializers of EGLDisplay`, + f: noop, + desc: `Fixes initializers of EGLDisplay (removed)`, disabled: false, } -// Old state: -// -// type EGLDisplay unsafe.Pointer -// -// New state: -// -// type EGLDisplay uintptr -// -// This fix finds nils initializing these types and replaces the nils with 0s. -func eglfixDisp(f *ast.File) bool { - return typefix(f, func(s string) bool { - return s == "C.EGLDisplay" - }) -} - var eglFixConfig = fix{ name: "eglconf", date: "2020-05-30", - f: eglfixConfig, - desc: `Fixes initializers of EGLConfig`, + f: noop, + desc: `Fixes initializers of EGLConfig (removed)`, disabled: false, } - -// Old state: -// -// type EGLConfig unsafe.Pointer -// -// New state: -// -// type EGLConfig uintptr -// -// This fix finds nils initializing these types and replaces the nils with 0s. -func eglfixConfig(f *ast.File) bool { - return typefix(f, func(s string) bool { - return s == "C.EGLConfig" - }) -} |
