Skip to content

Commit d296b34

Browse files
committed
staticcheck: delete unused function objectName
(cherry picked from commit 98c3eca)
1 parent 0d4b693 commit d296b34

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

staticcheck/lint.go

-15
Original file line numberDiff line numberDiff line change
@@ -2852,21 +2852,6 @@ func CheckInfiniteRecursion(pass *analysis.Pass) (interface{}, error) {
28522852
return nil, nil
28532853
}
28542854

2855-
func objectName(obj types.Object) string {
2856-
if obj == nil {
2857-
return "<nil>"
2858-
}
2859-
var name string
2860-
if obj.Pkg() != nil && obj.Pkg().Scope().Lookup(obj.Name()) == obj {
2861-
s := obj.Pkg().Path()
2862-
if s != "" {
2863-
name += s + "."
2864-
}
2865-
}
2866-
name += obj.Name()
2867-
return name
2868-
}
2869-
28702855
func CheckLeakyTimeTick(pass *analysis.Pass) (interface{}, error) {
28712856
for _, fn := range pass.ResultOf[buildir.Analyzer].(*buildir.IR).SrcFuncs {
28722857
if code.IsMainLike(pass) || code.IsInTest(pass, fn) {

0 commit comments

Comments
 (0)