Skip to content

Commit 97cf573

Browse files
committed
staticcheck: remove outdated comment
1 parent f40f799 commit 97cf573

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

staticcheck/lint.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3093,13 +3093,6 @@ func CheckDeprecated(pass *analysis.Pass) (interface{}, error) {
30933093
}
30943094

30953095
handleDeprecation := func(depr *deprecated.IsDeprecated, node ast.Node, deprecatedObjName string, pkgPath string, tfn types.Object) {
3096-
// Note: gopls doesn't correctly run analyzers on
3097-
// dependencies, so we'll never be able to find deprecated
3098-
// objects in imported code. We've experimented with
3099-
// lifting the stdlib handling out of the general check,
3100-
// to at least work for deprecated objects in the stdlib,
3101-
// but we gave up on that, because we wouldn't have access
3102-
// to the deprecation message.
31033096
std, ok := knowledge.StdlibDeprecations[deprecatedObjName]
31043097
if !ok && isStdlibPath(pkgPath) {
31053098
// Deprecated object in the standard library, but we don't know the details of the deprecation.

0 commit comments

Comments
 (0)