Remove unused code

This commit is contained in:
Lennart K
2026-01-08 23:24:47 +01:00
parent 276fdcacf5
commit c77b59dcb0
4 changed files with 51 additions and 27 deletions

View File

@@ -4,24 +4,6 @@ use rustical_xml::{ValueDeserialize, ValueSerialize};
const UTC_DATE_TIME: &str = "%Y%m%dT%H%M%SZ";
#[derive(Debug, thiserror::Error, PartialEq, Eq)]
pub enum CalDateTimeError {
#[error(
"Timezone has X-LIC-LOCATION property to specify a timezone from the Olson database, however its value {0} is invalid"
)]
InvalidOlson(String),
#[error("TZID {0} does not refer to a valid timezone")]
InvalidTZID(String),
#[error("Timestamp doesn't exist because of gap in local time")]
LocalTimeGap,
#[error("Datetime string {0} has an invalid format")]
InvalidDatetimeFormat(String),
#[error("Could not parse datetime {0}")]
ParseError(String),
#[error("Duration string {0} has an invalid format")]
InvalidDurationFormat(String),
}
#[derive(Debug, Clone, Deref, PartialEq, Eq, Hash)]
pub struct UtcDateTime(pub DateTime<Utc>);