Skip to content

Commit d780326

Browse files
committedJun 24, 2016
@Availability flags for versions do not make sense in swift-corelibs-foundation
1 parent 270dccd commit d780326

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed
 

‎Foundation/DateComponents.swift

-4
Original file line numberDiff line numberDiff line change
@@ -214,15 +214,13 @@ public struct DateComponents : ReferenceConvertible, Hashable, Equatable, _Mutab
214214
/// Set the value of one of the properties, using an enumeration value instead of a property name.
215215
///
216216
/// The calendar and timeZone and isLeapMonth properties cannot be set by this method.
217-
@available(OSX 10.9, iOS 8.0, *)
218217
public mutating func setValue(_ value: Int?, forComponent unit: Calendar.Unit) {
219218
_applyMutation { $0.setValue(_setter(value), forComponent: unit) }
220219
}
221220

222221
/// Returns the value of one of the properties, using an enumeration value instead of a property name.
223222
///
224223
/// The calendar and timeZone and isLeapMonth property values cannot be retrieved by this method.
225-
@available(OSX 10.9, iOS 8.0, *)
226224
public func value(forComponent unit: Calendar.Unit) -> Int? {
227225
return _handle.map { $0.value(forComponent: unit) }
228226
}
@@ -238,7 +236,6 @@ public struct DateComponents : ReferenceConvertible, Hashable, Equatable, _Mutab
238236
/// If the time zone property is set in the `DateComponents`, it is used.
239237
///
240238
/// The calendar property must be set, or the result is always `false`.
241-
@available(OSX 10.9, iOS 8.0, *)
242239
public var isValidDate: Bool {
243240
return _handle.map { $0.isValidDate }
244241
}
@@ -250,7 +247,6 @@ public struct DateComponents : ReferenceConvertible, Hashable, Equatable, _Mutab
250247
/// Except for some trivial cases (e.g., 'seconds' should be 0 - 59 in any calendar), this method is not necessarily cheap.
251248
///
252249
/// If the time zone property is set in the `DateComponents`, it is used.
253-
@available(OSX 10.9, iOS 8.0, *)
254250
public func isValidDate(in calendar: Calendar) -> Bool {
255251
return _handle.map { $0.isValidDate(in: calendar) }
256252
}

‎Foundation/String.swift

-6
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ extension String {
243243

244244
/// A capitalized representation of the `String` that is produced
245245
/// using the current locale.
246-
@available(OSX 10.11, iOS 9.0, *)
247246
public var localizedCapitalized: String {
248247
return _ns.localizedCapitalized
249248
}
@@ -937,7 +936,6 @@ extension String {
937936

938937
/// A lowercase version of the string that is produced using the current
939938
/// locale.
940-
@available(OSX 10.11, iOS 9.0, *)
941939
public var localizedLowercase: String {
942940
return _ns.localizedLowercase
943941
}
@@ -1127,7 +1125,6 @@ extension String {
11271125
/// similar to how searches are done generally in the system. The search is
11281126
/// locale-aware, case and diacritic insensitive. The exact list of search
11291127
/// options applied may change over time.
1130-
@available(OSX 10.11, iOS 9.0, *)
11311128
public func localizedStandardContains(_ string: String) -> Bool {
11321129
return _ns.localizedStandardContains(string)
11331130
}
@@ -1142,7 +1139,6 @@ extension String {
11421139
/// similar to how searches are done generally in the system. The search is
11431140
/// locale-aware, case and diacritic insensitive. The exact list of search
11441141
/// options applied may change over time.
1145-
@available(OSX 10.11, iOS 9.0, *)
11461142
public func localizedStandardRange(of string: String) -> Range<Index>? {
11471143
return _optionalRange(_ns.localizedStandardRange(of: string))
11481144
}
@@ -1389,7 +1385,6 @@ extension String {
13891385

13901386
/// An uppercase version of the string that is produced using the current
13911387
/// locale.
1392-
@available(OSX 10.11, iOS 9.0, *)
13931388
public var localizedUppercase: String {
13941389
return _ns.localizedUppercase as String
13951390
}
@@ -1442,7 +1437,6 @@ extension String {
14421437

14431438
/// Perform string transliteration.
14441439
#if false
1445-
@available(OSX 10.11, iOS 9.0, *)
14461440
public func applyingTransform(
14471441
_ transform: StringTransform, reverse: Bool
14481442
) -> String? {

0 commit comments

Comments
 (0)
Please sign in to comment.