repository: drop unused rjoin() method
authorPatrick Mezard <pmezard@gmail.com>
Sun, 22 Aug 2010 13:17:34 +0200
changeset 12035 ff1044230bca
parent 12034 3bfd425f1472
child 12036 31f02288bbc4
repository: drop unused rjoin() method This method was introduced by cfeeac24fc1e but grepping the history does not reveal any call. Extensions may use it but the method intent is not even clear to me.
mercurial/localrepo.py
mercurial/repo.py
--- a/mercurial/localrepo.py	Tue Aug 24 15:13:11 2010 +0200
+++ b/mercurial/localrepo.py	Sun Aug 22 13:17:34 2010 +0200
@@ -482,9 +482,6 @@
     def wjoin(self, f):
         return os.path.join(self.root, f)
 
-    def rjoin(self, f):
-        return os.path.join(self.root, util.pconvert(f))
-
     def file(self, f):
         if f[0] == '/':
             f = f[1:]
--- a/mercurial/repo.py	Tue Aug 24 15:13:11 2010 +0200
+++ b/mercurial/repo.py	Sun Aug 22 13:17:34 2010 +0200
@@ -35,10 +35,3 @@
 
     def cancopy(self):
         return self.local()
-
-    def rjoin(self, path):
-        url = self.url()
-        if url.endswith('/'):
-            return url + path
-        else:
-            return url + '/' + path