C++: Delete dead code.

This commit is contained in:
Anders Schack-Mulligen
2025-03-06 09:48:10 +01:00
parent 6ba1d2ef14
commit 4bd35b10fc

View File

@@ -1835,9 +1835,7 @@ module IteratorFlow {
private module IteratorSsa = SsaImpl::Make<Location, SsaInput>;
cached
private newtype TSsaDef =
TDef(IteratorSsa::DefinitionExt def) or
TPhi(PhiNode phi)
private newtype TSsaDef = TDef(IteratorSsa::DefinitionExt def)
abstract private class SsaDef extends TSsaDef {
/** Gets a textual representation of this element. */
@@ -1889,20 +1887,6 @@ module IteratorFlow {
int getIndirectionIndex() { result = this.getImpl().getIndirectionIndex() }
}
private class Phi extends TPhi, SsaDef {
PhiNode phi;
Phi() { this = TPhi(phi) }
final override PhiNode asPhi() { result = phi }
final override Location getLocation() { result = phi.getBasicBlock().getLocation() }
override string toString() { result = phi.toString() }
SsaIteratorNode getNode() { result.getIteratorFlowNode() = phi }
}
private class PhiNode extends IteratorSsa::DefinitionExt {
PhiNode() {
this instanceof IteratorSsa::PhiNode or