Remove unused web.common.getxmlfile()

This commit is contained in:
Sajith Sasidharan 2020-09-22 21:04:19 -04:00
parent 9aee312d8c
commit 22a1721b62
2 changed files with 1 additions and 5 deletions

0
newsfragments/3436.minor Normal file
View File

View File

@ -5,10 +5,9 @@ from functools import wraps
from twisted.web import http, server, resource, template
from twisted.python import log
from nevow import loaders, appserver
from nevow import appserver
from nevow.rend import Page
from nevow.inevow import IRequest
from nevow.util import resource_filename
from allmydata import blacklist
from allmydata.interfaces import ExistingChildError, NoSuchChildError, \
FileTooLargeError, NotEnoughSharesError, NoSharesError, \
@ -42,9 +41,6 @@ def get_filenode_metadata(filenode):
metadata['size'] = size
return metadata
def getxmlfile(name):
return loaders.xmlfile(resource_filename('allmydata.web', '%s' % name))
def boolean_of_arg(arg):
# TODO: ""
if arg.lower() not in ("true", "t", "1", "false", "f", "0", "on", "off"):