mercurial/windows.py
changeset 31539 52361c4f4dac
parent 31447 067add650129
child 31644 f80d9ddc40f3
--- a/mercurial/windows.py	Tue Mar 21 06:50:28 2017 -0700
+++ b/mercurial/windows.py	Tue Mar 21 06:50:28 2017 -0700
@@ -385,19 +385,6 @@
             break
         head, tail = os.path.split(head)
 
-def unlinkpath(f, ignoremissing=False):
-    """unlink and remove the directory if it is empty"""
-    try:
-        unlink(f)
-    except OSError as e:
-        if not (ignoremissing and e.errno == errno.ENOENT):
-            raise
-    # try removing directories that might now be empty
-    try:
-        removedirs(os.path.dirname(f))
-    except OSError:
-        pass
-
 def rename(src, dst):
     '''atomically rename file src to dst, replacing dst if it exists'''
     try: