From 7e9204e1fe0177ae7ebe341dc6102e4ad35396fa Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Fri, 10 Oct 2025 19:00:43 -0400 Subject: [PATCH] Code cleanup --- src/auth.rs | 5 ----- src/main.rs | 6 ------ 2 files changed, 11 deletions(-) diff --git a/src/auth.rs b/src/auth.rs index 6f9da6c..6950308 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -1,6 +1,3 @@ -// use std::collections::BTreeMap; -// use std::sync::Arc; - use axum::{ Json, http::{Request, StatusCode}, @@ -10,9 +7,7 @@ use axum::{ use axum_extra::extract::cookie::CookieJar; use jsonwebtoken::{DecodingKey, Validation, decode}; use serde::{Deserialize, Serialize}; -// use serde_json::{json, Value}; use thiserror::Error; -// use time::OffsetDateTime; fn deserialize_i64_from_f64<'de, D>(deserializer: D) -> Result where diff --git a/src/main.rs b/src/main.rs index 517e0ab..a373fb0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -82,12 +82,6 @@ pub mod init { Ok("production") => { // In production, allow only your specific, trusted origins let allowed_origins_env = icarus_envy::environment::get_allowed_origins().await; - /* - let allowed_origins: Vec = allowed_origins_env - .split(",") - .map(|s| s.parse::().unwrap()) - .collect(); - */ match icarus_envy::utility::delimitize(&allowed_origins_env) { Ok(alwd) => { let allowed_origins: Vec = alwd