python: remove getTree for now

This commit is contained in:
Rasmus Lerchedahl Petersen
2022-03-01 10:49:21 +01:00
parent 853857bd7e
commit ce3ee65f47
3 changed files with 0 additions and 12 deletions

View File

@@ -519,9 +519,6 @@ class XPathExecution extends DataFlow::Node {
/** Gets the data flow node for the XPath expression being executed by this node. */
DataFlow::Node getXPath() { result = range.getXPath() }
/** Gets a dataflow node for the tree in which the XPath expression is being evaluated. */
DataFlow::Node getTree() { result = range.getTree() }
/**
* Gets the name of this XPath expression execution, typically the name of an executing method.
* This is used for nice alert messages and should include the module if possible.
@@ -544,9 +541,6 @@ module XPathExecution {
/** Gets the data flow node for the XPath expression being executed by this node. */
abstract DataFlow::Node getXPath();
/** Gets a dataflow node for the tree in which the XPath expression is being evaluated. */
abstract DataFlow::Node getTree();
/**
* Gets the name of this xpath expression execution, typically the name of an executing method.
* This is used for nice alert messages and should include the module if possible.

View File

@@ -40,9 +40,6 @@ private module Libxml2 {
override DataFlow::Node getXPath() { result = this.getArg(0) }
// TODO: implement when we get call nodes
override DataFlow::Node getTree() { none() }
override string getName() { result = "libxml2" }
}
}

View File

@@ -68,9 +68,6 @@ private module Lxml {
override DataFlow::Node getXPath() { result in [this.getArg(0), this.getArgByName("_path")] }
// TODO: implement when we get call nodes
override DataFlow::Node getTree() { none() }
override string getName() { result = "lxml.etree" }
}
}