revlog: remove the, now unused, `revlog._nodepos` attribute
Spotted by Yuya Nishihara.
--- a/mercurial/revlog.py Sun Nov 10 18:12:50 2019 +0100
+++ b/mercurial/revlog.py Sun Nov 10 18:15:54 2019 +0100
@@ -421,7 +421,6 @@
# Mapping of partial identifiers to full nodes.
self._pcache = {}
# Mapping of revision integer to full node.
- self._nodepos = None
self._compengine = b'zlib'
self._compengineopts = {}
self._maxdeltachainspan = -1
@@ -2223,11 +2222,6 @@
)
self.index.append(e)
- # Reset the pure node cache start lookup offset to account for new
- # revision.
- if self._nodepos is not None:
- self._nodepos = curr
-
entry = self._io.packentry(e, self.node, self.version, curr)
self._writeentry(
transaction, ifh, dfh, entry, deltainfo.data, link, offset
@@ -2462,7 +2456,6 @@
self._chunkclear()
del self.index[rev:-1]
- self._nodepos = None
def checksize(self):
"""Check size of index and data files