hgweb: remove unused methods on wsgirequest
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 10 Mar 2018 10:46:08 -0800
changeset 36856 e85574176467
parent 36855 0bc771bba220
child 36857 d6cd1451212e
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
mercurial/hgweb/request.py
--- 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.'''