Remove an unused method and imports

This commit is contained in:
Sajith Sasidharan 2020-04-30 18:48:06 -04:00
parent cce6f83054
commit cfe4b2925e

View File

@ -11,8 +11,6 @@ from twisted.web.util import redirectTo
from hyperlink import DecodedURL, URL
from nevow import rend, tags as T
from nevow.inevow import IRequest
from twisted.web import static
from nevow.util import resource_filename
@ -229,14 +227,6 @@ class Root(MultiFormatResource):
self.putChild("report_incident", IncidentReporter())
# until we get rid of nevow.Page in favour of twisted.web.resource
# we can't use getChild() -- but we CAN use childFactory or
# override locatechild
def childFactory(self, ctx, name):
request = IRequest(ctx)
return self.getChild(name, request)
def getChild(self, path, request):
if path == "helper_status":
# the Helper isn't attached until after the Tub starts, so this child