Skip to content

Commit 0321696

Browse files
committed
removed unneeded predicate
1 parent 5e446f1 commit 0321696

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

cpp/common/src/codingstandards/cpp/rules/preventdeadlockbylockinginpredefinedorder/PreventDeadlockByLockingInPredefinedOrder.qll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ predicate getAnOrderedLockPair(
2525
lock2 = node.coveredByLock() and
2626
not lock1 = lock2 and
2727
lock1.getEnclosingFunction() = lock2.getEnclosingFunction() and
28-
node.(Expr).getEnclosingFunction() = lock1.getEnclosingFunction() and
2928
exists(Location l1Loc, Location l2Loc |
3029
l1Loc = lock1.getLocation() and
3130
l2Loc = lock2.getLocation()

0 commit comments

Comments
 (0)