From 48606710a32010ee8611f5a9f48695efa5c05bd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karan=20=E2=80=A2=20=E0=A4=95=E0=A4=B0=E0=A4=A8?= Date: Fri, 28 Feb 2025 16:40:46 -0800 Subject: [PATCH] Remove Thai Calendar 145890794 --- Sources/FoundationEssentials/Calendar/Calendar.swift | 10 ---------- .../Calendar/Calendar_ICU.swift | 4 ---- 2 files changed, 14 deletions(-) diff --git a/Sources/FoundationEssentials/Calendar/Calendar.swift b/Sources/FoundationEssentials/Calendar/Calendar.swift index 251b93a5c..08e48464d 100644 --- a/Sources/FoundationEssentials/Calendar/Calendar.swift +++ b/Sources/FoundationEssentials/Calendar/Calendar.swift @@ -92,9 +92,6 @@ public struct Calendar : Hashable, Equatable, Sendable { @available(FoundationPreview 6.2, *) case dangi - @available(FoundationPreview 6.2, *) - case thai - @available(FoundationPreview 6.2, *) case vietnamese @@ -135,7 +132,6 @@ public struct Calendar : Hashable, Equatable, Sendable { case "telugu": self = .telugu case "vikram": self = .vikram case "dangi": self = .dangi - case "thai": self = .thai case "vietnamese": self = .vietnamese default: return nil } @@ -169,7 +165,6 @@ public struct Calendar : Hashable, Equatable, Sendable { case .telugu: return "telugu" case .vikram: return "vikram" case .dangi: return "dangi" - case .thai: return "thai" case .vietnamese: return "vietnamese" } } @@ -203,7 +198,6 @@ public struct Calendar : Hashable, Equatable, Sendable { case .telugu: return "telugu" case .vikram: return "vikram" case .dangi: return "dangi" - case .thai: return "thai" case .vietnamese: return "vietnamese" } } @@ -1404,8 +1398,6 @@ public struct Calendar : Hashable, Equatable, Sendable { return .vikram case .dangi: return .dangi - case .thai: - return .thai case .vietnamese: return .vietnamese } @@ -1465,8 +1457,6 @@ public struct Calendar : Hashable, Equatable, Sendable { return .vikram case .dangi: return .dangi - case .thai: - return .thai case .vietnamese: return .vietnamese default: diff --git a/Sources/FoundationInternationalization/Calendar/Calendar_ICU.swift b/Sources/FoundationInternationalization/Calendar/Calendar_ICU.swift index f2a9e340c..23de92073 100644 --- a/Sources/FoundationInternationalization/Calendar/Calendar_ICU.swift +++ b/Sources/FoundationInternationalization/Calendar/Calendar_ICU.swift @@ -1468,8 +1468,6 @@ internal final class _CalendarICU: _CalendarProtocol, @unchecked Sendable { return Date(timeIntervalSinceReferenceDate: -60645542400.0) case .dangi: fallthrough - case .thai: - fallthrough case .vietnamese: // TODO: This is copied from `.chinese` and needs to be revisited for each new calendar. if time < -146325744000.0 { return nil } @@ -1590,8 +1588,6 @@ internal final class _CalendarICU: _CalendarProtocol, @unchecked Sendable { return DateInterval(start: Date(timeIntervalSinceReferenceDate: -60645542400.0), duration: inf_ti) case .dangi: fallthrough - case .thai: - fallthrough case .vietnamese: // TODO: This is copied from `.chinese` and needs to be revisited for each new calendar. if time < -146325744000.0 { return nil }