From 6603319ceb2e3cf466679f698d37bb101190efa5 Mon Sep 17 00:00:00 2001 From: Patrick Mezard Date: Sun, 22 Aug 2010 13:17:34 +0200 Subject: [PATCH] repository: drop unused rjoin() method This method was introduced by b0e5c3bce42a 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 | 3 --- mercurial/repo.py | 7 ------- 2 files changed, 10 deletions(-) diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py index 56229b0d2a..fea384e049 100644 --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -482,9 +482,6 @@ class localrepository(repo.repository): 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:] diff --git a/mercurial/repo.py b/mercurial/repo.py index 2597d90084..ac5510fd78 100644 --- a/mercurial/repo.py +++ b/mercurial/repo.py @@ -35,10 +35,3 @@ class repository(object): def cancopy(self): return self.local() - - def rjoin(self, path): - url = self.url() - if url.endswith('/'): - return url + path - else: - return url + '/' + path