Skip to content

Commit acb6688

Browse files
committed
Remove old Windows Code
Windows now has a database (the registry) and can handle GMT/UTC, so this is irrelevant code.
1 parent fff2489 commit acb6688

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Foundation/NSTimeZone.swift

-10
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,6 @@ open class NSTimeZone : NSObject, NSCopying, NSSecureCoding, NSCoding {
2929
}
3030

3131
public init?(name tzName: String, data aData: Data?) {
32-
#if os(Windows)
33-
var tzName = tzName
34-
if tzName == "UTC" || tzName == "GMT" {
35-
tzName = "GMT+0000"
36-
}
37-
else if !(tzName.hasPrefix("GMT+") || tzName.hasPrefix("GMT-")) {
38-
NSLog("Time zone database not available on Windows")
39-
}
40-
#endif
41-
4232
super.init()
4333

4434
/* From https://developer.apple.com/documentation/foundation/nstimezone/1387250-init:

0 commit comments

Comments
 (0)