diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2019-12-05 13:20:49 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2019-12-05 16:05:10 +0100 |
| commit | 5bd2fc7dcf1e406156fc358c1fcd21932d113c52 (patch) | |
| tree | 75bf5fb36422dc2415517deb6653183f301d3bcb | |
| parent | 46f0be45b46f6b74ebf49a86084470fd6b3f040b (diff) | |
| download | mullvadvpn-5bd2fc7dcf1e406156fc358c1fcd21932d113c52.tar.xz mullvadvpn-5bd2fc7dcf1e406156fc358c1fcd21932d113c52.zip | |
Remove Optional+Unwrap
| -rw-r--r-- | ios/MullvadVPN/Optional+Unwrap.swift | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/ios/MullvadVPN/Optional+Unwrap.swift b/ios/MullvadVPN/Optional+Unwrap.swift deleted file mode 100644 index 80698c5e94..0000000000 --- a/ios/MullvadVPN/Optional+Unwrap.swift +++ /dev/null @@ -1,23 +0,0 @@ - -// -// Optional+Unwrap.swift -// MullvadVPN -// -// Created by pronebird on 02/05/2019. -// Copyright © 2019 Amagicom AB. All rights reserved. -// - -import Foundation - -class NilUnwrapError: Error {} - -extension Optional { - func unwrap() throws -> Wrapped { - switch self { - case .some(let value): - return value - case .none: - throw NilUnwrapError() - } - } -} |
