Revert "Python: Add getPostUpdateNode to DataFlow::Node"

This reverts commit 9137f04bd3.
This commit is contained in:
Rasmus Wriedt Larsen
2021-07-02 13:23:02 +02:00
parent e56dfe75bd
commit 7a6eee50ff
2 changed files with 1 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ module syntheticPreUpdateNode {
SyntheticPreUpdateNode() { this = TSyntheticPreUpdateNode(post) }
/** Gets the node for which this is a synthetic pre-update node. */
override NeedsSyntheticPreUpdateNode getPostUpdateNode() { result = post }
Node getPostUpdateNode() { result = post }
override string toString() { result = "[pre " + post.label() + "] " + post.toString() }

View File

@@ -123,9 +123,6 @@ class Node extends TNode {
* Gets a local source node from which data may flow to this node in zero or more local data-flow steps.
*/
LocalSourceNode getALocalSource() { result.flowsTo(this) }
/** Gets the `PostUpdateNode` for this node, if any. */
PostUpdateNode getPostUpdateNode() { result.getPreUpdateNode() = this }
}
/** A data-flow node corresponding to an SSA variable. */