Skip to content

Commit 4c0e5f6

Browse files
committed
Rust: Remove remaining DefinitionExt references.
1 parent 00b8c80 commit 4c0e5f6

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
@@ -330,33 +330,6 @@ private module Cached {
330330
import Cached
331331
private import codeql.rust.dataflow.Ssa
332332

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

0 commit comments

Comments
 (0)