Commit

Author:

Hash:

Timestamp:

+1 -38 +/-2 browse

Kevin Schoon [me@kevinschoon.com]

edbe9b4679a7d70ad66085680a96c1b67e0eb604

Mon, 14 Apr 2025 14:20:40 +0000 (1 month ago)

rm dead code
1diff --git a/src/axum/handlers.rs b/src/axum/handlers.rs
2deleted file mode 100644
3index 3fa69bc..0000000
4--- a/src/axum/handlers.rs
5+++ /dev/null
6 @@ -1,34 +0,0 @@
7- // use std::{str::FromStr, sync::Arc};
8- //
9- // use super::{AppState, error::Error};
10- // use crate::Namespace;
11- // use axum::{
12- // Extension, Json,
13- // body::HttpBody,
14- // extract::{FromRequest, Path, Query, Request, State},
15- // http::StatusCode,
16- // response::{IntoResponse, Response},
17- // };
18- // use bytes::{Buf, Bytes};
19- // use futures::TryStreamExt;
20- // use oci_spec::distribution::TagList;
21- // use serde_json::json;
22- //
23- // pub async fn index() -> Result<Json<serde_json::Value>, Error> {
24- // Ok(Json(json!({})))
25- // }
26- //
27- // pub(crate) async fn read_tags(
28- // State(state): State<Arc<AppState>>,
29- // Path(name): Path<String>,
30- // ) -> Result<Json<TagList>, Error> {
31- // let namespace = Namespace::from_str(&name)?;
32- // let tags = state.oci.list_tags(&namespace).await?;
33- // Ok(Json(tags))
34- // }
35- //
36- // pub async fn read_referrers() {}
37- //
38- // pub async fn delete_manifest() {}
39- // pub async fn delete_tag() {}
40- // pub async fn delete_blob() {}
41 diff --git a/src/axum/mod.rs b/src/axum/mod.rs
42index 55193a8..3522341 100644
43--- a/src/axum/mod.rs
44+++ b/src/axum/mod.rs
45 @@ -16,7 +16,6 @@ use crate::storage::Storage;
46
47 mod error;
48 mod extractors;
49- mod handlers;
50 mod handlers_blob;
51 mod handlers_manifest;
52 mod paths;
53 @@ -131,8 +130,6 @@ pub fn router(storage: &Storage) -> Router {
54 // // )
55 .layer(from_fn(global_headers))
56 .with_state(Arc::new(AppState {
57- oci: OciInterface {
58- storage: store
59- },
60+ oci: OciInterface { storage: store },
61 }))
62 }