# HG changeset patch # User Matt Mackall # Date 2008-03-20 16:12:35 # Node ID 08800489257ef5641c93273836ae13366b8ec30c # Parent a079cf63006510ed647caf0c65339fc537390503 repo classes: remove unused dev() method diff --git a/mercurial/bundlerepo.py b/mercurial/bundlerepo.py --- a/mercurial/bundlerepo.py +++ b/mercurial/bundlerepo.py @@ -221,9 +221,6 @@ class bundlerepository(localrepo.localre def url(self): return self._url - def dev(self): - return -1 - def file(self, f): if not self.bundlefilespos: self.bundlefile.seek(self.filestart) diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -450,9 +450,6 @@ class localrepository(repo.repository): pass raise repo.RepoError(_("unknown revision '%s'") % key) - def dev(self): - return os.lstat(self.path).st_dev - def local(self): return True diff --git a/mercurial/remoterepo.py b/mercurial/remoterepo.py --- a/mercurial/remoterepo.py +++ b/mercurial/remoterepo.py @@ -8,11 +8,7 @@ import repo class remoterepository(repo.repository): - def dev(self): - return -1 - - def local(self): - return False + pass class remotelock(object): def __init__(self, repo): diff --git a/mercurial/repo.py b/mercurial/repo.py --- a/mercurial/repo.py +++ b/mercurial/repo.py @@ -40,4 +40,3 @@ class repository(object): def cancopy(self): return self.local() - diff --git a/mercurial/statichttprepo.py b/mercurial/statichttprepo.py --- a/mercurial/statichttprepo.py +++ b/mercurial/statichttprepo.py @@ -74,9 +74,6 @@ class statichttprepository(localrepo.loc def url(self): return 'static-' + self._url - def dev(self): - return -1 - def local(self): return False