revlog: drop the unused `_sidedatareadfp` method
It has no caller anywhere and is probably the remains of some older code.
--- 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