Skip to content

Commit be44158

Browse files
authored
Remove Thai Calendar (#1203)
145890794
1 parent 0417e0a commit be44158

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

Sources/FoundationEssentials/Calendar/Calendar.swift

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,6 @@ public struct Calendar : Hashable, Equatable, Sendable {
9292
@available(FoundationPreview 6.2, *)
9393
case dangi
9494

95-
@available(FoundationPreview 6.2, *)
96-
case thai
97-
9895
@available(FoundationPreview 6.2, *)
9996
case vietnamese
10097

@@ -135,7 +132,6 @@ public struct Calendar : Hashable, Equatable, Sendable {
135132
case "telugu": self = .telugu
136133
case "vikram": self = .vikram
137134
case "dangi": self = .dangi
138-
case "thai": self = .thai
139135
case "vietnamese": self = .vietnamese
140136
default: return nil
141137
}
@@ -169,7 +165,6 @@ public struct Calendar : Hashable, Equatable, Sendable {
169165
case .telugu: return "telugu"
170166
case .vikram: return "vikram"
171167
case .dangi: return "dangi"
172-
case .thai: return "thai"
173168
case .vietnamese: return "vietnamese"
174169
}
175170
}
@@ -203,7 +198,6 @@ public struct Calendar : Hashable, Equatable, Sendable {
203198
case .telugu: return "telugu"
204199
case .vikram: return "vikram"
205200
case .dangi: return "dangi"
206-
case .thai: return "thai"
207201
case .vietnamese: return "vietnamese"
208202
}
209203
}
@@ -1404,8 +1398,6 @@ public struct Calendar : Hashable, Equatable, Sendable {
14041398
return .vikram
14051399
case .dangi:
14061400
return .dangi
1407-
case .thai:
1408-
return .thai
14091401
case .vietnamese:
14101402
return .vietnamese
14111403
}
@@ -1465,8 +1457,6 @@ public struct Calendar : Hashable, Equatable, Sendable {
14651457
return .vikram
14661458
case .dangi:
14671459
return .dangi
1468-
case .thai:
1469-
return .thai
14701460
case .vietnamese:
14711461
return .vietnamese
14721462
default:

Sources/FoundationInternationalization/Calendar/Calendar_ICU.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,8 +1468,6 @@ internal final class _CalendarICU: _CalendarProtocol, @unchecked Sendable {
14681468
return Date(timeIntervalSinceReferenceDate: -60645542400.0)
14691469
case .dangi:
14701470
fallthrough
1471-
case .thai:
1472-
fallthrough
14731471
case .vietnamese:
14741472
// TODO: This is copied from `.chinese` and needs to be revisited for each new calendar.
14751473
if time < -146325744000.0 { return nil }
@@ -1590,8 +1588,6 @@ internal final class _CalendarICU: _CalendarProtocol, @unchecked Sendable {
15901588
return DateInterval(start: Date(timeIntervalSinceReferenceDate: -60645542400.0), duration: inf_ti)
15911589
case .dangi:
15921590
fallthrough
1593-
case .thai:
1594-
fallthrough
15951591
case .vietnamese:
15961592
// TODO: This is copied from `.chinese` and needs to be revisited for each new calendar.
15971593
if time < -146325744000.0 { return nil }

0 commit comments

Comments
 (0)