repo classes: remove unused dev() method
authorMatt Mackall <mpm@selenic.com>
Thu, 20 Mar 2008 11:12:35 -0500
changeset 6312 08800489257e
parent 6311 a079cf630065
child 6313 c5580db9c3aa
repo classes: remove unused dev() method
mercurial/bundlerepo.py
mercurial/localrepo.py
mercurial/remoterepo.py
mercurial/repo.py
mercurial/statichttprepo.py
--- a/mercurial/bundlerepo.py	Sat Mar 15 15:23:20 2008 -0400
+++ b/mercurial/bundlerepo.py	Thu Mar 20 11:12:35 2008 -0500
@@ -221,9 +221,6 @@
     def url(self):
         return self._url
 
-    def dev(self):
-        return -1
-
     def file(self, f):
         if not self.bundlefilespos:
             self.bundlefile.seek(self.filestart)
--- a/mercurial/localrepo.py	Sat Mar 15 15:23:20 2008 -0400
+++ b/mercurial/localrepo.py	Thu Mar 20 11:12:35 2008 -0500
@@ -450,9 +450,6 @@
             pass
         raise repo.RepoError(_("unknown revision '%s'") % key)
 
-    def dev(self):
-        return os.lstat(self.path).st_dev
-
     def local(self):
         return True
 
--- a/mercurial/remoterepo.py	Sat Mar 15 15:23:20 2008 -0400
+++ b/mercurial/remoterepo.py	Thu Mar 20 11:12:35 2008 -0500
@@ -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):
--- a/mercurial/repo.py	Sat Mar 15 15:23:20 2008 -0400
+++ b/mercurial/repo.py	Thu Mar 20 11:12:35 2008 -0500
@@ -40,4 +40,3 @@
 
     def cancopy(self):
         return self.local()
-
--- a/mercurial/statichttprepo.py	Sat Mar 15 15:23:20 2008 -0400
+++ b/mercurial/statichttprepo.py	Thu Mar 20 11:12:35 2008 -0500
@@ -74,9 +74,6 @@
     def url(self):
         return 'static-' + self._url
 
-    def dev(self):
-        return -1
-
     def local(self):
         return False