mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
Python: Remove unused getTornadoRequestHandlerMethod
It was only used in a test, and with the mock, it gives no results anyway.
This commit is contained in:
@@ -11,10 +11,6 @@ ClassObject aTornadoRequestHandlerClass() {
|
||||
result.getASuperType() = theTornadoRequestHandlerClass()
|
||||
}
|
||||
|
||||
FunctionObject getTornadoRequestHandlerMethod(string name) {
|
||||
result = theTornadoRequestHandlerClass().declaredAttribute(name)
|
||||
}
|
||||
|
||||
/** Holds if `node` is likely to refer to an instance of a tornado
|
||||
* `RequestHandler` class.
|
||||
*/
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
|
||||
import python
|
||||
|
||||
import semmle.python.TestUtils
|
||||
|
||||
import semmle.python.web.tornado.Tornado
|
||||
|
||||
from FunctionObject func, string name
|
||||
where func = getTornadoRequestHandlerMethod(name) and
|
||||
/* Compatibility hack to make tests pass on both 1.20 and 1.21 */
|
||||
not name = "_execute"
|
||||
select name, func.toString(), remove_library_prefix(func.getFunction().getLocation())
|
||||
Reference in New Issue
Block a user