remove lines that aren't used yet

This commit is contained in:
robrobinbin 2021-01-14 19:33:17 +01:00
parent 735f79d80b
commit 292f8fbbb7

View file

@ -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))