Skip to content

Commit

Permalink
staticcheck: remove outdated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikh committed Aug 9, 2023
1 parent f40f799 commit 97cf573
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions staticcheck/lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -3093,13 +3093,6 @@ func CheckDeprecated(pass *analysis.Pass) (interface{}, error) {
}

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

0 comments on commit 97cf573

Please sign in to comment.