Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63d9781 commit 71756c7Copy full SHA for 71756c7
internal/refactor/inline/util.go
@@ -99,22 +99,6 @@ func checkInfoFields(info *types.Info) {
99
assert(info.Uses != nil, "types.Info.Uses is nil")
100
}
101
102
-func funcHasTypeParams(decl *ast.FuncDecl) bool {
103
- // generic function?
104
- if decl.Type.TypeParams != nil {
105
- return true
106
- }
107
- // method on generic type?
108
- if decl.Recv != nil {
109
- t := decl.Recv.List[0].Type
110
- if u, ok := t.(*ast.StarExpr); ok {
111
- t = u.X
112
113
- return is[*ast.IndexExpr](t) || is[*ast.IndexListExpr](t)
114
115
- return false
116
-}
117
-
118
// intersects reports whether the maps' key sets intersect.
119
func intersects[K comparable, T1, T2 any](x map[K]T1, y map[K]T2) bool {
120
if len(x) > len(y) {
0 commit comments