From 06f79ff5fe7092c72ad59e089b2c4ee13ef280eb Mon Sep 17 00:00:00 2001 From: minish Date: Sun, 8 Jan 2023 20:10:52 -0500 Subject: [PATCH] remove some unused code --- src/view.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/view.rs b/src/view.rs index 54c8e11..e44fb69 100644 --- a/src/view.rs +++ b/src/view.rs @@ -16,22 +16,6 @@ use mime_guess::mime; use tokio::fs::File; use tokio_util::io::ReaderStream; -use crate::cache; - -/* pub enum ViewResponse { - FromDisk(StreamBody>), - FromCache(Bytes) -} - -impl IntoResponse for ViewResponse { - fn into_response(self) -> Response { - match self { - ViewResponse::FromDisk(stream) => stream.into_response(), - ViewResponse::FromCache(data) => data.into_response() - } - } -} */ - #[axum::debug_handler] pub async fn view( State(state): State>,