Skip to content

Commit fc2cdff

Browse files
committed
8750 Remove unneeded workaround for ToS cancellation
We used this workaround to cancel discovery for specific errors, but as of c:fa59a2fa8063c6aa8e0d93879dbb5745ab2c0b81 it is dealt with in the BuiltInCardReaderConnectionController by ignoring subsequent discoveries once we show an error.
1 parent fa59a2f commit fc2cdff

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Hardware/Hardware/CardReader/StripeCardReader/StripeCardReaderService.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -470,10 +470,6 @@ extension StripeCardReaderService: CardReaderService {
470470
.softwareUpdate(underlyingError: underlyingError, batteryLevel: nil) :
471471
.connection(underlyingError: underlyingError)
472472
promise(.failure(serviceError))
473-
474-
if case .appleBuiltInReaderTOSAcceptanceCanceled = underlyingError {
475-
self.discoveryCancellable?.cancel({ _ in })
476-
}
477473
}
478474

479475
if let reader = reader {

0 commit comments

Comments
 (0)