Skip to content

Commit 7eab4c3

Browse files
committed
remove unused function
Signed-off-by: shun159 <[email protected]>
1 parent eef7894 commit 7eab4c3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

struct_ops.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,6 @@ func findStructTypeByName(s *btf.Spec, typ *btf.Struct) (*btf.Struct, *btf.Spec,
153153
return doFindStructTypeByName(s, typ.TypeName())
154154
}
155155

156-
func findStructTypeByName2(s *btf.Spec, name string) (*btf.Struct, *btf.Spec, uint32, error) {
157-
return doFindStructTypeByName(s, name)
158-
}
159-
160156
// doFindStructTypeByName looks up a struct type with the exact name in the
161157
// provided base BTF spec, and falls back to scanning all loaded module BTFs
162158
// if it is not present in vmlinux.

0 commit comments

Comments
 (0)