common_options: rm unused resolve_chip
For eventual usage of this function, refer to <https://github.com/probe-rs/cargo-flash/issues/183>.
-use crate::{read_metadata, ArtifactError};
+use crate::ArtifactError;
use std::{fs::File, io::Write, path::Path};
@@ -232,17 +232,6 @@ impl ProbeOptions {
Ok(build_flashloader(session.target(), elf_path)?)
}
}
-
- pub fn resolve_chip(&self, work_dir: &Path) -> TargetSelector {
- let meta = read_metadata(&work_dir).ok();
-
- // First use structopt, then manifest, then default to auto.
- match (&self.chip, meta.map(|m| m.chip).flatten()) {
- (Some(c), _) => c.into(),
- (_, Some(c)) => c.into(),
- _ => TargetSelector::Auto,
- }
- }
}
#[derive(StructOpt, Debug)]
