summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2022-07-26 14:04:25 +0200
committerAndrej Mihajlov <and@mullvad.net>2022-08-01 16:07:07 +0200
commit250f76e6f46480239ab4c305b4c41f885c5e2cac (patch)
tree1f49ca851d20d22d9fe7c5b11936569cb415611a
parentf138b9037c7a70300f2bf93f37c7bac24a4111f2 (diff)
downloadmullvadvpn-250f76e6f46480239ab4c305b4c41f885c5e2cac.tar.xz
mullvadvpn-250f76e6f46480239ab4c305b4c41f885c5e2cac.zip
OperationCompletion: remove helpers: assertNoSuccess and assertFailure
-rw-r--r--ios/MullvadVPN/Operations/OperationCompletion.swift14
1 files changed, 0 insertions, 14 deletions
diff --git a/ios/MullvadVPN/Operations/OperationCompletion.swift b/ios/MullvadVPN/Operations/OperationCompletion.swift
index f75d17438d..5bb73071a3 100644
--- a/ios/MullvadVPN/Operations/OperationCompletion.swift
+++ b/ios/MullvadVPN/Operations/OperationCompletion.swift
@@ -124,20 +124,6 @@ enum OperationCompletion<Success, Failure: Error> {
}
}
- func assertNoSuccess<NewSuccess>() -> OperationCompletion<NewSuccess, Failure> {
- return map { success in
- return success as! NewSuccess
- }
- }
-
- func assertFailure<NewFailure: Error>(_ failureType: NewFailure.Type)
- -> OperationCompletion<Success, NewFailure>
- {
- return mapError { error -> NewFailure in
- return error as! NewFailure
- }
- }
-
func ignoreOutput() -> OperationCompletion<Void, Failure> {
return map { _ in () }
}