diff --git a/src/main.rs b/src/main.rs index 5234499..77a63bd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,4 @@ use std::env; -use std::env::args; use std::process::exit; mod cargo; @@ -33,12 +32,6 @@ fn args_hack(cmd: &str) -> anyhow::Result<()> { fn main() -> anyhow::Result<()> { env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info")).init(); - // for version check. - if let Some(_) = args().find(|x| x == "--cargo-ndk-version"){ - print!("{}", env!("CARGO_PKG_VERSION")); - exit(0); - } - if env::var("CARGO").is_err() { eprintln!("This binary may only be called via `cargo ndk`."); exit(1);