Skip to content

Commit 79069ce

Browse files
committed
Rust: Remove remaining DefinitionExt references.
1 parent e5466a4 commit 79069ce

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

rust/ql/lib/codeql/rust/dataflow/internal/SsaImpl.qll

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -336,33 +336,6 @@ private module Cached {
336336
import Cached
337337
private import codeql.rust.dataflow.Ssa
338338

339-
/**
340-
* An extended static single assignment (SSA) definition.
341-
*
342-
* This is either a normal SSA definition (`Definition`) or a
343-
* phi-read node (`PhiReadNode`).
344-
*
345-
* Only intended for internal use.
346-
*/
347-
class DefinitionExt extends Impl::DefinitionExt {
348-
CfgNode getARead() { result = getARead(this) }
349-
350-
override string toString() { result = this.(Ssa::Definition).toString() }
351-
352-
override Location getLocation() { result = this.(Ssa::Definition).getLocation() }
353-
}
354-
355-
/**
356-
* A phi-read node.
357-
*
358-
* Only intended for internal use.
359-
*/
360-
class PhiReadNode extends DefinitionExt, Impl::PhiReadNode {
361-
override string toString() { result = "SSA phi read(" + this.getSourceVariable() + ")" }
362-
363-
override Location getLocation() { result = Impl::PhiReadNode.super.getLocation() }
364-
}
365-
366339
private module DataFlowIntegrationInput implements Impl::DataFlowIntegrationInputSig {
367340
class Expr extends CfgNodes::AstCfgNode {
368341
predicate hasCfgNode(SsaInput::BasicBlock bb, int i) { this = bb.getNode(i) }

0 commit comments

Comments
 (0)