Skip to content

Commit f10770e

Browse files
committed
setup: remove old, unused code
1 parent b48a684 commit f10770e

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

src/setup/mod.rs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -344,34 +344,9 @@ pub fn check_foundry_deps() -> Result<Vec<Dependency>> {
344344
if !is_command_installed("anvil")? {
345345
return Ok(vec![Dependency::Foundry]);
346346
}
347-
// let (_, installed_datetime) = get_foundry_version()?;
348347
Ok(vec![])
349348
}
350349

351-
#[instrument(level = "trace", skip_all)]
352-
fn get_foundry_version() -> Result<(String, String)> {
353-
let output = run_command(Command::new("bash").args(&["-c", "anvil --version"]), false)?;
354-
let Some(output) = output else {
355-
return Err(eyre!(
356-
"failed to fetch foundry version: anvil --version failed"
357-
));
358-
};
359-
let output: Vec<&str> = output.0.split('(').nth(1).unwrap().split(' ').collect();
360-
if output.len() != 2 {
361-
return Err(eyre!(
362-
"failed to fetch foundry version: unexpected output: {output:?}"
363-
));
364-
}
365-
Ok((
366-
output[0].trim().to_string(),
367-
output[1]
368-
.trim()
369-
.strip_suffix(')')
370-
.unwrap_or_else(|| output[1])
371-
.to_string(),
372-
))
373-
}
374-
375350
/// install forge+anvil+others, could be separated into binary extractions from github releases.
376351
#[instrument(level = "trace", skip_all)]
377352
fn install_foundry(verbose: bool) -> Result<()> {

0 commit comments

Comments
 (0)