Skip to content

Commit 9d600d4

Browse files
committed
Ruby: remove another unused class
1 parent d6fb0fe commit 9d600d4

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

ruby/ql/src/experimental/cwe-807/ConditionalBypass.ql

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28,28 +28,6 @@ predicate flowsToGuardExpr(DataFlow::Node nd, SensitiveActionGuardConditional gu
2828
exists(DataFlow::Node succ | localFlowStep(nd, succ) | flowsToGuardExpr(succ, guard))
2929
}
3030

31-
/**
32-
* A comparison that guards a sensitive action, e.g. the comparison in:
33-
* ```rb
34-
* ok = x == y
35-
* if ok
36-
* login
37-
* end
38-
* ```
39-
*/
40-
class SensitiveActionGuardComparison extends ComparisonOperation {
41-
SensitiveActionGuardConditional guard;
42-
43-
SensitiveActionGuardComparison() {
44-
exists(DataFlow::Node node | this = node.asExpr().getExpr() | flowsToGuardExpr(node, guard))
45-
}
46-
47-
/**
48-
* Gets the guard that uses this comparison.
49-
*/
50-
SensitiveActionGuardConditional getGuard() { result = guard }
51-
}
52-
5331
/**
5432
* Holds if `sink` guards `action`, and `source` taints `sink`.
5533
*

0 commit comments

Comments
 (0)