From 7d8cd461318fe2bd0c8f3fd51d0b23a71aedfd1b Mon Sep 17 00:00:00 2001 From: lyw458372 Date: Mon, 8 Jun 2026 19:41:49 +0800 Subject: [PATCH] chore: delete dead code --- src/header/time/mod.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/header/time/mod.rs b/src/header/time/mod.rs index 71694363d4..b4c708042a 100644 --- a/src/header/time/mod.rs +++ b/src/header/time/mod.rs @@ -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 { - if off < 0 { - FixedOffset::west_opt(off as _) - } else { - FixedOffset::east_opt(off as _) - } -} - const fn blank_tm() -> tm { tm { tm_year: 0,