hgweb: remove unused methods on wsgirequest
writelines() isn't used in our code base.
close() was a no-op. It is an optional method per PEP 3333.
My eventual goal is to kill the wsgirequest class, hence why I'm
removing code.
Differential Revision: https://phab.mercurial-scm.org/D2747
--- a/mercurial/hgweb/request.py Thu Mar 08 17:17:48 2018 -0800
+++ b/mercurial/hgweb/request.py Sat Mar 10 10:46:08 2018 -0800
@@ -306,16 +306,9 @@
if inst[0] != errno.ECONNRESET:
raise
- def writelines(self, lines):
- for line in lines:
- self.write(line)
-
def flush(self):
return None
- def close(self):
- return None
-
def wsgiapplication(app_maker):
'''For compatibility with old CGI scripts. A plain hgweb() or hgwebdir()
can and should now be used as a WSGI application.'''