Skip to content

Commit aeb2284

Browse files
committed
Java: Remove getAFirstUse in BaseSSA.
1 parent c7486fa commit aeb2284

File tree

1 file changed

+0
-18
lines changed
  • java/ql/lib/semmle/code/java/dataflow/internal

1 file changed

+0
-18
lines changed

java/ql/lib/semmle/code/java/dataflow/internal/BaseSSA.qll

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -210,14 +210,6 @@ private module Cached {
210210
Impl::ssaDefReachesEndOfBlock(bb, def, _)
211211
}
212212

213-
cached
214-
predicate firstUse(Impl::Definition def, VarRead use) {
215-
exists(BasicBlock bb, int i |
216-
Impl::firstUse(def, bb, i, _) and
217-
use.getControlFlowNode() = bb.getNode(i)
218-
)
219-
}
220-
221213
cached
222214
predicate ssaUpdate(Impl::Definition def, VariableUpdate upd) {
223215
exists(BaseSsaSourceVariable v, BasicBlock bb, int i |
@@ -297,16 +289,6 @@ class BaseSsaVariable extends Impl::Definition {
297289
/** Gets an access of this SSA variable. */
298290
VarRead getAUse() { result = getAUse(this) }
299291

300-
/**
301-
* Gets an access of the SSA source variable underlying this SSA variable
302-
* that can be reached from this SSA variable without passing through any
303-
* other uses, but potentially through phi nodes.
304-
*
305-
* Subsequent uses can be found by following the steps defined by
306-
* `baseSsaAdjacentUseUse`.
307-
*/
308-
VarRead getAFirstUse() { firstUse(this, result) }
309-
310292
/** Holds if this SSA variable is live at the end of `b`. */
311293
predicate isLiveAtEndOfBlock(BasicBlock b) { ssaDefReachesEndOfBlock(b, this) }
312294

0 commit comments

Comments
 (0)