Skip to content

Commit 1f6e2bd

Browse files
authored
Merge pull request #2517 from gmittert/WindowsIsntThatBad
Remove old Windows Code
2 parents 30995f5 + acb6688 commit 1f6e2bd

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Foundation/NSTimeZone.swift

Lines changed: 0 additions & 10 deletions
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)