C++: Drive-by cleanup: This case is redundant since a 'DestructorCall' is also a 'FunctionCall'.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-12-15 11:38:52 +00:00
parent ce326a0f79
commit 2c5f65a241

View File

@@ -339,10 +339,6 @@ class Function extends Declaration, ControlFlowNode, AccessHolder, @function {
exists(FunctionCall call |
call.getEnclosingFunction() = this and call.getTarget() = f and call = l
)
or
exists(DestructorCall call |
call.getEnclosingFunction() = this and call.getTarget() = f and call = l
)
}
/** Holds if this function accesses a function or variable or enumerator `a`. */