hgweb: drop unused argument 'tmpl' from webutil.diffstat()
authorYuya Nishihara <yuya@tcha.org>
Wed, 04 Apr 2018 00:21:52 +0900
changeset 38059 4c3ab15f3532
parent 38058 6369e21e97ac
child 38060 aeccb08af311
hgweb: drop unused argument 'tmpl' from webutil.diffstat()
mercurial/hgweb/webutil.py
--- a/mercurial/hgweb/webutil.py	Wed Apr 04 00:20:47 2018 +0900
+++ b/mercurial/hgweb/webutil.py	Wed Apr 04 00:21:52 2018 +0900
@@ -509,7 +509,7 @@
 
     parity = paritygen(web.stripecount)
     diffstatsgen = diffstatgen(ctx, basectx)
-    diffstats = diffstat(web.tmpl, ctx, diffstatsgen, parity)
+    diffstats = diffstat(ctx, diffstatsgen, parity)
 
     return dict(
         diff=diff,
@@ -694,7 +694,7 @@
             'parity': next(parity),
         })
 
-def diffstat(tmpl, ctx, statgen, parity):
+def diffstat(ctx, statgen, parity):
     '''Return a diffstat template for each file in the diff.'''
     args = (ctx, statgen, parity)
     return templateutil.mappedgenerator(_diffstattmplgen, args=args)