hgweb: remove unused code in annotate web command
authorDenis Laxalde <denis.laxalde@logilab.fr>
Wed, 01 Jun 2016 15:16:38 +0200
changeset 29325 4f2f8baba2ff
parent 29324 b501579147f1
child 29326 d48fc6f318a3
hgweb: remove unused code in annotate web command
mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py	Sat Jun 04 14:38:00 2016 +0530
+++ b/mercurial/hgweb/webcommands.py	Wed Jun 01 15:16:38 2016 +0200
@@ -864,7 +864,6 @@
                                      section='annotate', whitespace=True)
 
     def annotate(**map):
-        last = None
         if util.binary(fctx.data()):
             mt = (mimetypes.guess_type(fctx.path())[0]
                   or 'application/octet-stream')
@@ -874,11 +873,6 @@
             lines = enumerate(fctx.annotate(follow=True, linenumber=True,
                                             diffopts=diffopts))
         for lineno, ((f, targetline), l) in lines:
-            fnode = f.filenode()
-
-            if last != fnode:
-                last = fnode
-
             yield {"parity": next(parity),
                    "node": f.hex(),
                    "rev": f.rev(),