time: remove deprecated functions

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2024-06-20 13:43:40 +02:00
parent 533954ed38
commit 214dbdf9a5
2 changed files with 0 additions and 28 deletions

View File

@ -178,28 +178,6 @@ pub fn verify_calendar_event(i: &str) -> Result<(), Error> {
Ok(()) Ok(())
} }
/// Compute the next event. Use [CalendarEvent::compute_next_event] instead.
#[deprecated = "use method 'compute_next_event' of CalendarEvent instead"]
#[cfg(not(target_arch = "wasm32"))]
pub fn compute_next_event(
event: &CalendarEvent,
last: i64,
utc: bool,
) -> Result<Option<i64>, Error> {
if event.utc != utc {
let mut event = event.clone();
event.utc = utc;
return event.compute_next_event(last);
}
event.compute_next_event(last)
}
/// Parse a [CalendarEvent]
#[deprecated = "use std::str::FromStr trait instead"]
pub fn parse_calendar_event(i: &str) -> Result<CalendarEvent, Error> {
i.parse()
}
fn parse_calendar_event_incomplete(mut i: &str) -> IResult<&str, CalendarEvent> { fn parse_calendar_event_incomplete(mut i: &str) -> IResult<&str, CalendarEvent> {
let mut has_dayspec = false; let mut has_dayspec = false;
let mut has_timespec = false; let mut has_timespec = false;

View File

@ -206,12 +206,6 @@ impl std::str::FromStr for TimeSpan {
} }
} }
/// Parse a [TimeSpan]
#[deprecated = "Use std::str::FromStr trait instead."]
pub fn parse_time_span(i: &str) -> Result<TimeSpan, Error> {
i.parse()
}
fn parse_time_span_incomplete(mut i: &str) -> IResult<&str, TimeSpan> { fn parse_time_span_incomplete(mut i: &str) -> IResult<&str, TimeSpan> {
let mut ts = TimeSpan::default(); let mut ts = TimeSpan::default();