about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-03-19 10:18:14 -0400
committerGitHub <noreply@github.com>2017-03-19 10:18:14 -0400
commit8287d0de0ee24dda2b64de0758e8fd7719ab5b58 (patch)
tree64df8556aeccc64f330ff1e768e94a4a80183682
parent9032ceae979b6fc0e74f1a3db62222eb1cfce886 (diff)
parentbefeb0437018820ee651ed6096a341ba1fd64a28 (diff)
downloadrust-8287d0de0ee24dda2b64de0758e8fd7719ab5b58.tar.gz
rust-8287d0de0ee24dda2b64de0758e8fd7719ab5b58.zip
Rollup merge of #40562 - mbrubeck:bootstrap, r=alexcrichton
Remove unused param from bootstrap::clean::rm_rf

None
-rw-r--r--src/bootstrap/clean.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bootstrap/clean.rs b/src/bootstrap/clean.rs
index a66ed46fe46..e9547ee42d0 100644
--- a/src/bootstrap/clean.rs
+++ b/src/bootstrap/clean.rs
@@ -22,9 +22,9 @@ use std::path::Path;
 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