Skip to content

Commit db3df7c

Browse files
committed
remove @Availability annotations since it does not make sense on linux targets
1 parent f2c8ec9 commit db3df7c

File tree

3 files changed

+0
-11
lines changed

3 files changed

+0
-11
lines changed

Foundation/DateComponents.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ public struct DateComponents : ReferenceConvertible, Hashable, Equatable, _Mutab
216216
/// Set the value of one of the properties, using an enumeration value instead of a property name.
217217
///
218218
/// The calendar and timeZone and isLeapMonth properties cannot be set by this method.
219-
@available(OSX 10.9, iOS 8.0, *)
220219
public mutating func setValue(_ value: Int?, for component: Calendar.Component) {
221220
_applyMutation {
222221
$0.setValue(_setter(value), forComponent: Calendar._toCalendarUnit([component]))
@@ -226,7 +225,6 @@ public struct DateComponents : ReferenceConvertible, Hashable, Equatable, _Mutab
226225
/// Returns the value of one of the properties, using an enumeration value instead of a property name.
227226
///
228227
/// The calendar and timeZone and isLeapMonth property values cannot be retrieved by this method.
229-
@available(OSX 10.9, iOS 8.0, *)
230228
public func value(for component: Calendar.Component) -> Int? {
231229
return _handle.map {
232230
$0.value(forComponent: Calendar._toCalendarUnit([component]))
@@ -244,7 +242,6 @@ public struct DateComponents : ReferenceConvertible, Hashable, Equatable, _Mutab
244242
/// If the time zone property is set in the `DateComponents`, it is used.
245243
///
246244
/// The calendar property must be set, or the result is always `false`.
247-
@available(OSX 10.9, iOS 8.0, *)
248245
public var isValidDate: Bool {
249246
return _handle.map { $0.isValidDate }
250247
}
@@ -256,7 +253,6 @@ public struct DateComponents : ReferenceConvertible, Hashable, Equatable, _Mutab
256253
/// Except for some trivial cases (e.g., 'seconds' should be 0 - 59 in any calendar), this method is not necessarily cheap.
257254
///
258255
/// If the time zone property is set in the `DateComponents`, it is used.
259-
@available(OSX 10.9, iOS 8.0, *)
260256
public func isValidDate(in calendar: Calendar) -> Bool {
261257
return _handle.map { $0.isValidDate(in: calendar) }
262258
}

Foundation/NSStringAPI.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ extension String {
228228

229229
/// A capitalized representation of the `String` that is produced
230230
/// using the current locale.
231-
@available(OSX 10.11, iOS 9.0, *)
232231
public var localizedCapitalized: String {
233232
return _ns.localizedCapitalized
234233
}
@@ -955,7 +954,6 @@ extension String {
955954

956955
/// A lowercase version of the string that is produced using the current
957956
/// locale.
958-
@available(OSX 10.11, iOS 9.0, *)
959957
public var localizedLowercase: String {
960958
return _ns.localizedLowercase
961959
}
@@ -1146,7 +1144,6 @@ extension String {
11461144
/// similar to how searches are done generally in the system. The search is
11471145
/// locale-aware, case and diacritic insensitive. The exact list of search
11481146
/// options applied may change over time.
1149-
@available(OSX 10.11, iOS 9.0, *)
11501147
public func localizedStandardContains(_ string: String) -> Bool {
11511148
return _ns.localizedStandardContains(string)
11521149
}
@@ -1161,7 +1158,6 @@ extension String {
11611158
/// similar to how searches are done generally in the system. The search is
11621159
/// locale-aware, case and diacritic insensitive. The exact list of search
11631160
/// options applied may change over time.
1164-
@available(OSX 10.11, iOS 9.0, *)
11651161
public func localizedStandardRange(of string: String) -> Range<Index>? {
11661162
return _optionalRange(_ns.localizedStandardRange(of: string))
11671163
}
@@ -1419,7 +1415,6 @@ extension String {
14191415

14201416
/// An uppercase version of the string that is produced using the current
14211417
/// locale.
1422-
@available(OSX 10.11, iOS 9.0, *)
14231418
public var localizedUppercase: String {
14241419
return _ns.localizedUppercase as String
14251420
}
@@ -1472,7 +1467,6 @@ extension String {
14721467

14731468
/// Perform string transliteration.
14741469
#if false
1475-
@available(OSX 10.11, iOS 9.0, *)
14761470
public func applyingTransform(
14771471
_ transform: StringTransform, reverse: Bool
14781472
) -> String? {

Foundation/UUID.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import CoreFoundation
2121
#endif
2222

2323
/// Represents UUID strings, which can be used to uniquely identify types, interfaces, and other items.
24-
@available(OSX 10.8, iOS 6.0, *)
2524
public struct UUID : ReferenceConvertible, Hashable, Equatable, CustomStringConvertible {
2625
public typealias ReferenceType = NSUUID
2726

0 commit comments

Comments
 (0)