diff util.py @ 19:1267b1944cd7

Killed some dead code found by test coverage.
author Augie Fackler <durin42@gmail.com>
date Wed, 08 Oct 2008 16:44:05 -0500
parents f2636cfed115
children 50d55c3e0d85
line wrap: on
line diff
--- a/util.py
+++ b/util.py
@@ -18,18 +18,3 @@ def wipe_all_files(hg_wc_path):
             shutil.rmtree(f)
         else:
             os.remove(f)
-
-
-def remove_all_files_with_status(path, rev_paths, strip_path, status):
-    for p in rev_paths:
-        if rev_paths[p].action == status:
-            if p.startswith(strip_path):
-                fi = p[len(strip_path)+1:]
-                if len(fi) > 0:
-                    fi = os.path.join(path, fi)
-                    if os.path.isfile(fi):
-                        os.remove(fi)
-                        print 'D %s' % fi
-                    elif os.path.isdir(fi):
-                        shutil.rmtree(fi)
-                        print 'D %s' % fi