remove old code

This commit is contained in:
nora 2022-03-06 16:51:39 +01:00
parent 392bf67fc2
commit 19c48b7da1
2 changed files with 3 additions and 19 deletions

View file

@ -17,3 +17,6 @@ clap = { version = "3.1.5", features = ["derive"] }
tokio = { version = "1.16.1", features = ["full"] } tokio = { version = "1.16.1", features = ["full"] }
tracing = "0.1.30" tracing = "0.1.30"
tracing-subscriber = { version = "0.3.8", features = ["env-filter"] } tracing-subscriber = { version = "0.3.8", features = ["env-filter"] }
[profile.release]
lto = "fat"

View file

@ -41,25 +41,6 @@ pub async fn dashboard(global_data: GlobalData) {
.unwrap(); .unwrap();
} }
//async fn get_index_html() -> impl IntoResponse {
// info!("Requesting index.html");
// Html(INDEX_HTML)
//}
//
//async fn get_script_js() -> Response {
// Response::builder()
// .header("content-type", "application/javascript")
// .body(boxed(Full::from(SCRIPT_JS)))
// .unwrap()
//}
//
//async fn get_style_css() -> Response {
// Response::builder()
// .header("content-type", "text/css")
// .body(boxed(Full::from(STYLE_CSS)))
// .unwrap()
//}
#[derive(Serialize)] #[derive(Serialize)]
struct Data { struct Data {
connections: Vec<Connection>, connections: Vec<Connection>,