patch: remove unused fsbackend._join()
authorMartin von Zweigbergk <martinvonz@google.com>
Thu, 29 Jun 2017 23:04:47 -0700
changeset 33156 5ebf39ae10ed
parent 33155 b8ae289a7707
child 33157 5d29c55414b3
patch: remove unused fsbackend._join() The function lost its last caller in 2a095d3442e0 (patch: replace functions in fsbackend to use vfs, 2014-06-05) when the callers started relying on the opener to do the join.
mercurial/patch.py
--- a/mercurial/patch.py	Fri Jun 30 09:07:24 2017 -0700
+++ b/mercurial/patch.py	Thu Jun 29 23:04:47 2017 -0700
@@ -456,9 +456,6 @@
         super(fsbackend, self).__init__(ui)
         self.opener = vfsmod.vfs(basedir)
 
-    def _join(self, f):
-        return os.path.join(self.opener.base, f)
-
     def getfile(self, fname):
         if self.opener.islink(fname):
             return (self.opener.readlink(fname), (True, False))