changeset 51088:9d5efaefc544

revlog: drop the unused `_sidedatareadfp` method It has no caller anywhere and is probably the remains of some older code.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 17 Oct 2023 04:54:22 +0200
parents 5645524c6b62
children 118c99c6092b
files mercurial/revlog.py
diffstat 1 files changed, 0 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- 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