From d501843f06502cb613ad7996c3c5533b8a728e6b Mon Sep 17 00:00:00 2001 From: Ivan Bushchik Date: Sun, 17 Mar 2024 18:17:58 +0300 Subject: [PATCH] Remove unused HASH_CALCULATION_SH static It was used in early stages of this project to provide sha256 feature flag before 0.3.0. Signed-off-by: Ivan Bushchik --- src/main.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index fd8de32..d8542dc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -72,8 +72,6 @@ static MANIFEST: Lazy> = Lazy::new(|| { }); static WEB_SH: &str = include_str!("../web.sh"); -static HASH_CALCULATION_SH: &str = ""; - async fn reload_bins(args: &Args) { let (bins, time) = &mut *BINS.write().await; if (Instant::now() - *time).as_secs() > args.refresh { @@ -160,7 +158,6 @@ async fn get_script(bin: &str) -> ScriptResponse { Some(bin) => { let mut script = String::from(WEB_SH); script = script - .replace("{{HASH_CALCULATION}}", HASH_CALCULATION_SH) .replace("{{NAME}}", &bin.name) .replace("{{PLATFORM_LIST}}", &format_platform_list(bin)) .replace("{{EXTERNAL_ADDRESS}}", &args.url);