mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
C++: Delete dead code.
This commit is contained in:
@@ -1835,9 +1835,7 @@ module IteratorFlow {
|
|||||||
private module IteratorSsa = SsaImpl::Make<Location, SsaInput>;
|
private module IteratorSsa = SsaImpl::Make<Location, SsaInput>;
|
||||||
|
|
||||||
cached
|
cached
|
||||||
private newtype TSsaDef =
|
private newtype TSsaDef = TDef(IteratorSsa::DefinitionExt def)
|
||||||
TDef(IteratorSsa::DefinitionExt def) or
|
|
||||||
TPhi(PhiNode phi)
|
|
||||||
|
|
||||||
abstract private class SsaDef extends TSsaDef {
|
abstract private class SsaDef extends TSsaDef {
|
||||||
/** Gets a textual representation of this element. */
|
/** Gets a textual representation of this element. */
|
||||||
@@ -1889,20 +1887,6 @@ module IteratorFlow {
|
|||||||
int getIndirectionIndex() { result = this.getImpl().getIndirectionIndex() }
|
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 {
|
private class PhiNode extends IteratorSsa::DefinitionExt {
|
||||||
PhiNode() {
|
PhiNode() {
|
||||||
this instanceof IteratorSsa::PhiNode or
|
this instanceof IteratorSsa::PhiNode or
|
||||||
|
|||||||
Reference in New Issue
Block a user