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 <ivabus@ivabus.dev>
This commit is contained in:
Ivan Bushchik 2024-03-17 18:17:58 +03:00
parent 652196c247
commit d501843f06
No known key found for this signature in database
GPG key ID: 2F16FBF3262E090C

View file

@ -72,8 +72,6 @@ static MANIFEST: Lazy<Vec<u8>> = 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);