]> git.lizzy.rs Git - rust.git/commitdiff
Remove unused param from bootstrap::clean::rm_rf
authorMatt Brubeck <mbrubeck@limpet.net>
Wed, 15 Mar 2017 23:32:30 +0000 (16:32 -0700)
committerMatt Brubeck <mbrubeck@limpet.net>
Wed, 15 Mar 2017 23:32:30 +0000 (16:32 -0700)
src/bootstrap/clean.rs

index a66ed46fe464f5bb1185e4a25a4fb4d2a50b4ba0..e9547ee42d0771c8be57a92eb67cec822ad154c9 100644 (file)
@@ -22,9 +22,9 @@
 use Build;
 
 pub fn clean(build: &Build) {
-    rm_rf(build, "tmp".as_ref());
-    rm_rf(build, &build.out.join("tmp"));
-    rm_rf(build, &build.out.join("dist"));
+    rm_rf("tmp".as_ref());
+    rm_rf(&build.out.join("tmp"));
+    rm_rf(&build.out.join("dist"));
 
     for host in build.config.host.iter() {
         let entries = match build.out.join(host).read_dir() {
@@ -38,12 +38,12 @@ pub fn clean(build: &Build) {
                 continue
             }
             let path = t!(entry.path().canonicalize());
-            rm_rf(build, &path);
+            rm_rf(&path);
         }
     }
 }
 
-fn rm_rf(build: &Build, path: &Path) {
+fn rm_rf(path: &Path) {
     if !path.exists() {
         return
     }
@@ -55,7 +55,7 @@ fn rm_rf(build: &Build, path: &Path) {
         let file = t!(file).path();
 
         if file.is_dir() {
-            rm_rf(build, &file);
+            rm_rf(&file);
         } else {
             // On windows we can't remove a readonly file, and git will
             // often clone files as readonly. As a result, we have some