Skip to content

Commit 3b3f4bc

Browse files
committed
Java/Guards: Remove unused.
1 parent b19f15b commit 3b3f4bc

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

java/ql/lib/semmle/code/java/controlflow/Guards.qll

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -490,12 +490,6 @@ module Guards_v2 = GuardsImpl::Logic<LogicInput_v2>;
490490
/** INTERNAL: Don't use. */
491491
module Guards_v3 = GuardsImpl::Logic<LogicInput_v3>;
492492

493-
/** INTERNAL: Don't use. */
494-
predicate implies_v3(Guard g1, boolean b1, Guard g2, boolean b2) {
495-
Guards_v3::boolImplies(g1, any(GuardValue v | v.asBooleanValue() = b1), g2,
496-
any(GuardValue v | v.asBooleanValue() = b2))
497-
}
498-
499493
/**
500494
* A guard. This may be any expression whose value determines subsequent
501495
* control flow. It may also be a switch case, which as a guard is considered

shared/controlflow/codeql/controlflow/Guards.qll

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -935,18 +935,6 @@ module Make<LocationSig Location, InputSig<Location> Input> {
935935
}
936936
}
937937

938-
private predicate booleanGuard(Guard guard, GuardValue val) {
939-
exists(guard) and exists(val.asBooleanValue())
940-
}
941-
942-
private module BooleanImplies = ImpliesTC<booleanGuard/2>;
943-
944-
/** INTERNAL: Don't use. */
945-
predicate boolImplies(Guard g1, GuardValue v1, Guard g2, GuardValue v2) {
946-
BooleanImplies::guardControls(g2, v2, g1, v1) and
947-
g2 != g1
948-
}
949-
950938
/**
951939
* Holds if `guard` evaluating to `v` implies that `e` is guaranteed to be
952940
* null if `isNull` is true, and non-null if `isNull` is false.

0 commit comments

Comments
 (0)