Skip to content

Commit cc231fe

Browse files
committed
deprecate some unused predicate in DefUse.qll
1 parent c0a63be commit cc231fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

javascript/ql/lib/semmle/javascript/DefUse.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,15 +266,15 @@ predicate definitionReaches(Variable v, VarDef def, VarUse use) {
266266
* Holds if the definition of local variable `v` in `def` reaches `use` along some control flow path
267267
* without crossing another definition of `v`.
268268
*/
269-
predicate localDefinitionReaches(LocalVariable v, VarDef def, VarUse use) {
269+
deprecated predicate localDefinitionReaches(LocalVariable v, VarDef def, VarUse use) {
270270
exists(SsaExplicitDefinition ssa |
271271
ssa.defines(def, v) and
272272
ssa = getAPseudoDefinitionInput*(use.getSsaVariable().getDefinition())
273273
)
274274
}
275275

276276
/** Holds if `nd` is a pseudo-definition and the result is one of its inputs. */
277-
private SsaDefinition getAPseudoDefinitionInput(SsaDefinition nd) {
277+
deprecated private SsaDefinition getAPseudoDefinitionInput(SsaDefinition nd) {
278278
result = nd.(SsaPseudoDefinition).getAnInput()
279279
}
280280

@@ -297,7 +297,7 @@ private int nextDefAfter(BasicBlock bb, Variable v, int i, VarDef d) {
297297
* This is the case if there is a path from `earlier` to `later` that does not cross
298298
* another definition of `v`.
299299
*/
300-
predicate localDefinitionOverwrites(LocalVariable v, VarDef earlier, VarDef later) {
300+
deprecated predicate localDefinitionOverwrites(LocalVariable v, VarDef earlier, VarDef later) {
301301
exists(BasicBlock bb, int i, int next | next = nextDefAfter(bb, v, i, earlier) |
302302
bb.defAt(next, v, later)
303303
or

0 commit comments

Comments
 (0)