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:
Rasmus Wriedt Larsen
2019-10-24 14:05:45 +02:00
parent bc50e90f5b
commit 3e3833927b
3 changed files with 0 additions and 16 deletions

View File

@@ -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.
*/

View File

@@ -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())