chore: delete dead code
This commit is contained in:
+1
-10
@@ -23,7 +23,7 @@ use crate::{
|
||||
};
|
||||
use alloc::collections::BTreeSet;
|
||||
use chrono::{
|
||||
DateTime, Datelike, FixedOffset, NaiveDate, NaiveDateTime, Offset, TimeZone, Timelike, Utc,
|
||||
DateTime, Datelike, NaiveDate, NaiveDateTime, Offset, TimeZone, Timelike, Utc,
|
||||
offset::MappedLocalTime,
|
||||
};
|
||||
use chrono_tz::{OffsetComponents, OffsetName, Tz};
|
||||
@@ -862,15 +862,6 @@ unsafe fn set_timezone(
|
||||
}
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
pub const fn get_offset(off: c_long) -> Option<FixedOffset> {
|
||||
if off < 0 {
|
||||
FixedOffset::west_opt(off as _)
|
||||
} else {
|
||||
FixedOffset::east_opt(off as _)
|
||||
}
|
||||
}
|
||||
|
||||
const fn blank_tm() -> tm {
|
||||
tm {
|
||||
tm_year: 0,
|
||||
|
||||
Reference in New Issue
Block a user