mirror of
https://github.com/github/codeql.git
synced 2026-04-25 00:35:20 +02:00
C++: Remove redundant case from shouldPrintDeclaration
A configuration should always exist, because it does not have a charpred that could prevent this.
This commit is contained in:
@@ -8,8 +8,6 @@ private import PrintAST
|
||||
private predicate shouldPrintDeclaration(Declaration decl) {
|
||||
not (decl instanceof Function or decl instanceof GlobalOrNamespaceVariable)
|
||||
or
|
||||
not exists(PrintAstConfiguration c)
|
||||
or
|
||||
exists(PrintAstConfiguration config | config.shouldPrintDeclaration(decl))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user