Python: delete dead code. thanks QL-for-QL

This commit is contained in:
erik-krogh
2022-11-17 15:27:39 +01:00
parent ba2734909f
commit 468a879c1f

View File

@@ -111,14 +111,6 @@ module PEP249 {
private class CursorCall extends InstanceSource, DataFlow::CallCfgNode {
CursorCall() { this.getFunction() = methodRef() }
}
/** Gets a reference to a result of calling the `cursor` method on a database connection. */
private DataFlow::TypeTrackingNode methodResult(DataFlow::TypeTracker t) {
t.start() and
result.asCfgNode().(CallNode).getFunction() = methodRef().asCfgNode()
or
exists(DataFlow::TypeTracker t2 | result = methodResult(t2).track(t2, t))
}
}
/**