revlog: drop the unused `_sidedatareadfp` method
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 17 Oct 2023 04:54:22 +0200
changeset 51084 9d5efaefc544
parent 51083 5645524c6b62
child 51085 118c99c6092b
revlog: drop the unused `_sidedatareadfp` method It has no caller anywhere and is probably the remains of some older code.
mercurial/revlog.py
--- a/mercurial/revlog.py	Fri Oct 13 16:11:04 2023 +0200
+++ b/mercurial/revlog.py	Tue Oct 17 04:54:22 2023 +0200
@@ -1108,15 +1108,6 @@
         """file object for the revlog's data file"""
         return self.opener(self._datafile, mode=mode)
 
-    @contextlib.contextmanager
-    def _sidedatareadfp(self):
-        """file object suitable to read sidedata"""
-        if self._writinghandles:
-            yield self._writinghandles[2]
-        else:
-            with self.opener(self._sidedatafile) as fp:
-                yield fp
-
     def tiprev(self):
         return len(self.index) - 1