aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/fix/egltype.go
diff options
context:
space:
mode:
authorqiulaidongfeng <2645477756@qq.com>2025-08-13 22:33:14 +0800
committerGopher Robot <gobot@golang.org>2025-09-05 08:15:02 -0700
commit459b85ccaa30bbce4c22b2779672dfe402a2b2da (patch)
treebda72a3741c2b47c4e83ac0aa0e17808010073f8 /src/cmd/fix/egltype.go
parent87e72769fa74a2ef0bd81a3fd4febe75b8fc6731 (diff)
downloadgo-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.go42
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"
- })
-}