filelog: remove unused _file method
authorMike Edgar <adgar@google.com>
Thu, 22 Jan 2015 11:09:34 -0500
changeset 24003 b95a5bb58653
parent 24002 96d130697f07
child 24004 8a5267cd5286
filelog: remove unused _file method
mercurial/bundlerepo.py
mercurial/filelog.py
mercurial/unionrepo.py
--- a/mercurial/bundlerepo.py	Mon Jan 26 15:18:07 2015 -0800
+++ b/mercurial/bundlerepo.py	Thu Jan 22 11:09:34 2015 -0500
@@ -177,9 +177,6 @@
     def baserevision(self, nodeorrev):
         return filelog.filelog.revision(self, nodeorrev)
 
-    def _file(self, f):
-        self._repo.file(f)
-
 class bundlepeer(localrepo.localpeer):
     def canpush(self):
         return False
--- a/mercurial/filelog.py	Mon Jan 26 15:18:07 2015 -0800
+++ b/mercurial/filelog.py	Thu Jan 22 11:09:34 2015 -0500
@@ -104,9 +104,6 @@
                 raise error.CensoredNodeError(self.indexfile, node)
             raise
 
-    def _file(self, f):
-        return filelog(self.opener, f)
-
     def _iscensored(self, rev):
         """Check if a file revision is censored."""
         return self.flags(rev) & revlog.REVIDX_ISCENSORED
--- a/mercurial/unionrepo.py	Mon Jan 26 15:18:07 2015 -0800
+++ b/mercurial/unionrepo.py	Thu Jan 22 11:09:34 2015 -0500
@@ -160,9 +160,6 @@
     def baserevdiff(self, rev1, rev2):
         return filelog.filelog.revdiff(self, rev1, rev2)
 
-    def _file(self, f):
-        self._repo.file(f)
-
 class unionpeer(localrepo.localpeer):
     def canpush(self):
         return False