Skip to content

Commit b495398

Browse files
authored
Revert "[gardening][NSLocale] Move operators into types" (#840)
1 parent 6b7ee30 commit b495398

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Foundation/NSLocale.swift

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,12 @@ extension NSLocale {
236236
}
237237

238238

239-
extension NSLocale.Key {
240-
public static func ==(_ lhs: NSLocale.Key, _ rhs: NSLocale.Key) -> Bool {
241-
return lhs.rawValue == rhs.rawValue
242-
}
239+
public func ==(_ lhs: NSLocale.Key, _ rhs: NSLocale.Key) -> Bool {
240+
return lhs.rawValue == rhs.rawValue
241+
}
243242

244-
public static func <(_ lhs: NSLocale.Key, _ rhs: NSLocale.Key) -> Bool {
245-
return lhs.rawValue < rhs.rawValue
246-
}
243+
public func <(_ lhs: NSLocale.Key, _ rhs: NSLocale.Key) -> Bool {
244+
return lhs.rawValue < rhs.rawValue
247245
}
248246

249247

0 commit comments

Comments
 (0)