From 292f8fbbb720dd41f973910691b4d0764a1a8237 Mon Sep 17 00:00:00 2001 From: robrobinbin <> Date: Thu, 14 Jan 2021 19:33:17 +0100 Subject: [PATCH] remove lines that aren't used yet --- src/main.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index e1ed067..d9d6a4a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -27,12 +27,6 @@ async fn favicon() -> HttpResponse { .body(include_bytes!("../static/favicon.ico").as_ref()) } -async fn thumbnail() -> HttpResponse { - HttpResponse::Ok() - .header("Cache-Control", "public, max-age=1209600, s-maxage=86400") - .body(include_bytes!("../static/thumbnail.svg").as_ref()) -} - #[actix_web::main] async fn main() -> std::io::Result<()> { let mut address = "0.0.0.0:8080".to_string(); @@ -60,7 +54,6 @@ async fn main() -> std::io::Result<()> { // Read static files .route("/style.css/", web::get().to(style)) .route("/favicon.ico/", web::get().to(favicon)) - .route("/thumbnail.svg/", web::get().to(thumbnail)) .route("/robots.txt/", web::get().to(robots)) // Proxy media through Libreddit .route("/proxy/{url:.*}/", web::get().to(proxy::handler))