Skip to content

Commit bb96c9d

Browse files
authored
Merge pull request #448 from capacitor-community/remove-unused
refactor(ios): remove unused code
2 parents bac68d3 + 61b0c22 commit bb96c9d

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

packages/payment/ios/Sources/StripePlugin/PaymentFlow/PaymentFlowExecutor.swift

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,11 @@ class PaymentFlowExecutor: NSObject {
4040
configuration.returnURL = returnURL
4141
}
4242

43-
if #available(iOS 13.0, *) {
44-
let style = call.getString("style") ?? ""
45-
if style == "alwaysLight" {
46-
configuration.style = .alwaysLight
47-
} else if style == "alwaysDark" {
48-
configuration.style = .alwaysDark
49-
}
43+
let style = call.getString("style") ?? ""
44+
if style == "alwaysLight" {
45+
configuration.style = .alwaysLight
46+
} else if style == "alwaysDark" {
47+
configuration.style = .alwaysDark
5048
}
5149

5250
let applePayMerchantId = call.getString("applePayMerchantId") ?? ""

packages/payment/ios/Sources/StripePlugin/PaymentSheet/PaymentSheetExecutor.swift

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,11 @@ class PaymentSheetExecutor: NSObject {
4040
configuration.returnURL = returnURL
4141
}
4242

43-
if #available(iOS 13.0, *) {
44-
let style = call.getString("style") ?? ""
45-
if style == "alwaysLight" {
46-
configuration.style = .alwaysLight
47-
} else if style == "alwaysDark" {
48-
configuration.style = .alwaysDark
49-
}
43+
let style = call.getString("style") ?? ""
44+
if style == "alwaysLight" {
45+
configuration.style = .alwaysLight
46+
} else if style == "alwaysDark" {
47+
configuration.style = .alwaysDark
5048
}
5149

5250
let applePayMerchantId = call.getString("applePayMerchantId") ?? ""

0 commit comments

Comments
 (0)