remove some unused code

This commit is contained in:
minish 2023-01-08 20:10:52 -05:00 committed by minish
parent 327443da32
commit 06f79ff5fe
1 changed files with 0 additions and 16 deletions

View File

@ -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<ReaderStream<File>>),
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<Arc<crate::state::AppState>>,