Skip to content

Commit 468a879

Browse files
committed
Python: delete dead code. thanks QL-for-QL
1 parent ba27349 commit 468a879

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

python/ql/lib/semmle/python/frameworks/PEP249.qll

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,6 @@ module PEP249 {
111111
private class CursorCall extends InstanceSource, DataFlow::CallCfgNode {
112112
CursorCall() { this.getFunction() = methodRef() }
113113
}
114-
115-
/** Gets a reference to a result of calling the `cursor` method on a database connection. */
116-
private DataFlow::TypeTrackingNode methodResult(DataFlow::TypeTracker t) {
117-
t.start() and
118-
result.asCfgNode().(CallNode).getFunction() = methodRef().asCfgNode()
119-
or
120-
exists(DataFlow::TypeTracker t2 | result = methodResult(t2).track(t2, t))
121-
}
122114
}
123115

124116
/**

0 commit comments

Comments
 (0)