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:
Jeroen Ketema
2023-07-20 16:11:17 +02:00
parent e76dc4a1f9
commit 7c429fb924

View File

@@ -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))
}