Skip to content

Commit

Permalink
Removed unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpallant committed Jul 29, 2024
1 parent 12a32fe commit 09c09f8
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/tools/generate-copyright/src/cargo_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,29 +213,3 @@ fn load_important_files(
}
Ok(())
}

// /// Fetch any important notices for this package
// fn fetch_notices(cargo: &Path, package_name: &str, package_version: &str) -> Result<BTreeMap<OsString, String>, Error> {
// println!("Fetching for {package_name} {package_version}");
// let mut output = BTreeMap::new();
// // 1. Make a temp directory
// let workarea = tempfile::tempdir()?;
// // 2. Run `cargo download` into it
// let name_version = format!("{package_name}={package_version}");
// let download_output = std::process::Command::new(cargo)
// .arg("download")
// .arg("-o")
// .arg(workarea.path())
// .arg("-x")
// .arg(&name_version)
// .env("RUSTC_BOOTSTRAP", "1")
// .output()
// .map_err(|e| Error::LaunchingDownload(e, name_version.clone()))?;
// if !download_output.status.success() {
// return Err(Error::GettingDownload(
// String::from_utf8(download_output.stderr).expect("UTF-8 output from cargo"),
// name_version.clone()
// ));
// }
// Ok(output)
// }

0 comments on commit 09c09f8

Please sign in to comment.