Skip to content

Commit 7c429fb

Browse files
committed
C++: Remove redundant case from shouldPrintDeclaration
A configuration should always exist, because it does not have a charpred that could prevent this.
1 parent e76dc4a commit 7c429fb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cpp/ql/lib/semmle/code/cpp/Print.qll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ private import PrintAST
88
private predicate shouldPrintDeclaration(Declaration decl) {
99
not (decl instanceof Function or decl instanceof GlobalOrNamespaceVariable)
1010
or
11-
not exists(PrintAstConfiguration c)
12-
or
1311
exists(PrintAstConfiguration config | config.shouldPrintDeclaration(decl))
1412
}
1513

0 commit comments

Comments
 (0)