Fix frontend compilation warnings by removing dead code
All checks were successful
Build and Push Docker Image / docker (push) Successful in 4m5s

- Remove unused Route enum and yew_router import from sidebar.rs
- Remove unused last_fetched field from ExternalCalendarEventsResponse
- Prefix unused variables with underscore (_preserve_rrule, _until_date, etc.)

Frontend now compiles cleanly with no warnings.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Connor Johnstone
2025-09-18 16:28:44 -04:00
parent b530dcaa69
commit fd80624429
3 changed files with 4 additions and 15 deletions

View File

@@ -914,8 +914,8 @@ pub fn App() -> Html {
original_event,
new_start,
new_end,
preserve_rrule,
until_date,
_preserve_rrule,
_until_date,
update_scope,
occurrence_date,
): (
@@ -1474,7 +1474,7 @@ pub fn App() -> Html {
let calendar_management_modal_open = calendar_management_modal_open.clone();
wasm_bindgen_futures::spawn_local(async move {
let calendar_service = CalendarService::new();
let _calendar_service = CalendarService::new();
match CalendarService::get_external_calendars().await {
Ok(calendars) => {
external_calendars.set(calendars);

View File

@@ -2,17 +2,7 @@ use crate::components::CalendarListItem;
use crate::services::calendar_service::{UserInfo, ExternalCalendar};
use web_sys::HtmlSelectElement;
use yew::prelude::*;
use yew_router::prelude::*;
#[derive(Clone, Routable, PartialEq)]
pub enum Route {
#[at("/")]
Home,
#[at("/login")]
Login,
#[at("/calendar")]
Calendar,
}
#[derive(Clone, PartialEq)]
pub enum ViewMode {

View File

@@ -412,7 +412,7 @@ impl CalendarService {
}
});
if let Some(until) = until_date {
if let Some(_until) = until_date {
}
let start_date = base_event.dtstart.date();
@@ -2101,7 +2101,6 @@ impl CalendarService {
#[derive(Deserialize)]
struct ExternalCalendarEventsResponse {
events: Vec<VEvent>,
last_fetched: chrono::DateTime<chrono::Utc>,
}
let response: ExternalCalendarEventsResponse = serde_wasm_bindgen::from_value(json)