Skip to content

Commit 2c5f65a

Browse files
committed
C++: Drive-by cleanup: This case is redundant since a 'DestructorCall' is also a 'FunctionCall'.
1 parent ce326a0 commit 2c5f65a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,6 @@ class Function extends Declaration, ControlFlowNode, AccessHolder, @function {
339339
exists(FunctionCall call |
340340
call.getEnclosingFunction() = this and call.getTarget() = f and call = l
341341
)
342-
or
343-
exists(DestructorCall call |
344-
call.getEnclosingFunction() = this and call.getTarget() = f and call = l
345-
)
346342
}
347343

348344
/** Holds if this function accesses a function or variable or enumerator `a`. */

0 commit comments

Comments
 (0)