mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
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.
This commit is contained in:
parent
a612b24fe8
commit
6603319ceb
@ -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:]
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user