From e3a5fcfa375af7df4eb3de9c93b2a31ad860ed60 Mon Sep 17 00:00:00 2001 From: NachoSoto Date: Thu, 7 Sep 2023 08:00:39 -0700 Subject: [PATCH] `Xcode 13`: removed last `Swift 5.7` checks Follow up to #3147. --- Sources/Purchasing/CachingProductsManager.swift | 6 ------ .../Purchasing/StoreKitAbstractions/SK2StoreProduct.swift | 4 ---- 2 files changed, 10 deletions(-) diff --git a/Sources/Purchasing/CachingProductsManager.swift b/Sources/Purchasing/CachingProductsManager.swift index 508ec5d0ed..7732442f9c 100644 --- a/Sources/Purchasing/CachingProductsManager.swift +++ b/Sources/Purchasing/CachingProductsManager.swift @@ -91,13 +91,7 @@ extension CachingProductsManager: ProductsManagerType { } -#if swift(>=5.7) extension CachingProductsManager: Sendable {} -#else -// @unchecked because: -// - It contains `any` -extension CachingProductsManager: @unchecked Sendable {} -#endif // MARK: - Private diff --git a/Sources/Purchasing/StoreKitAbstractions/SK2StoreProduct.swift b/Sources/Purchasing/StoreKitAbstractions/SK2StoreProduct.swift index 9d508e104a..ad44cfbdb6 100644 --- a/Sources/Purchasing/StoreKitAbstractions/SK2StoreProduct.swift +++ b/Sources/Purchasing/StoreKitAbstractions/SK2StoreProduct.swift @@ -87,11 +87,9 @@ internal struct SK2StoreProduct: StoreProductType { private extension SK2StoreProduct { var _currencyCode: String? { - #if swift(>=5.7) if #available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *) { return self.currencyCodeFromPriceFormat } - #endif // note: if we ever need more information from the jsonRepresentation object, we // should use Codable or another decoding method to clean up this code. @@ -107,12 +105,10 @@ private extension SK2StoreProduct { // This is marked as `@_backDeploy`, but it's only visible when compiling with Xcode 14.x // and for some reason only returning a non-empty string on iOS 16+. - #if swift(>=5.7) @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *) private var currencyCodeFromPriceFormat: String { return self.underlyingSK2Product.priceFormatStyle.currencyCode } - #endif }