mercurial/util.py
changeset 13375 f1fa8f481c7c
parent 13342 2dc7a2a96cfd
child 13392 777cef34a890
--- a/mercurial/util.py	Mon Feb 14 11:12:22 2011 +0100
+++ b/mercurial/util.py	Mon Feb 14 11:12:26 2011 +0100
@@ -554,16 +554,6 @@
         # want to add "foo/bar/baz" before checking if there's a "foo/.hg"
         self.auditeddir.update(prefixes)
 
-def nlinks(pathname):
-    """Return number of hardlinks for the given file."""
-    return os.lstat(pathname).st_nlink
-
-if hasattr(os, 'link'):
-    os_link = os.link
-else:
-    def os_link(src, dst):
-        raise OSError(0, _("Hardlinks not supported"))
-
 def lookup_reg(key, name=None, scope=None):
     return None