mirror of
https://github.com/facebook/sapling.git
synced 2025-01-06 04:43:19 +03:00
Remove some debugging code from lazyparser
This commit is contained in:
parent
36152aee36
commit
b4d3ada8cd
@ -50,17 +50,6 @@ class lazyparser:
|
||||
self.index = [None] * self.l
|
||||
self.map = {nullid: -1}
|
||||
|
||||
if 0:
|
||||
n = 0
|
||||
i = self.data
|
||||
s = struct.calcsize(indexformat)
|
||||
for f in xrange(0, len(i), s):
|
||||
# offset, size, base, linkrev, p1, p2, nodeid
|
||||
e = struct.unpack(indexformat, i[f:f + s])
|
||||
self.map[e[6]] = n
|
||||
self.index.append(e)
|
||||
n += 1
|
||||
|
||||
def load(self, pos):
|
||||
block = pos / 1000
|
||||
i = block * 1000
|
||||
|
Loading…
Reference in New Issue
Block a user