revlog: remove the, now unused, `revlog._nodepos` attribute
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sun, 10 Nov 2019 18:15:54 +0100
changeset 43628 f5991fd7cca7
parent 43627 9e1932eb41f9
child 43629 ae5e39512ca0
revlog: remove the, now unused, `revlog._nodepos` attribute Spotted by Yuya Nishihara.
mercurial/revlog.py
--- 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