changeset 14995:8d928799dab5

parsers: remove redundant 'n' variable in parsers.parse_index2() (issue2935)
author py4fun
date Sun, 31 Jul 2011 22:12:13 +0200
parents 3709cca378ff
children f6a737357195
files mercurial/pure/parsers.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/pure/parsers.py	Fri Jul 29 20:26:52 2011 +0200
+++ b/mercurial/pure/parsers.py	Sun Jul 31 22:12:13 2011 +0200
@@ -36,7 +36,7 @@
     s = struct.calcsize(indexformatng)
     index = []
     cache = None
-    n = off = 0
+    off = 0
 
     l = len(data) - s
     append = index.append
@@ -45,7 +45,6 @@
         while off <= l:
             e = _unpack(indexformatng, data[off:off + s])
             append(e)
-            n += 1
             if e[1] < 0:
                 break
             off += e[1] + s
@@ -53,7 +52,6 @@
         while off <= l:
             e = _unpack(indexformatng, data[off:off + s])
             append(e)
-            n += 1
             off += s
 
     if off != len(data):