diff --git a/Sources/ElixxirDAppsSDK/UserDiscovery/Functors/UserDiscoverySetAlternative.swift b/Sources/ElixxirDAppsSDK/UserDiscovery/Functors/UserDiscoverySetAlternative.swift deleted file mode 100644 index 731518eb8868f40d77639e55306e345d8a79be36..0000000000000000000000000000000000000000 --- a/Sources/ElixxirDAppsSDK/UserDiscovery/Functors/UserDiscoverySetAlternative.swift +++ /dev/null @@ -1,33 +0,0 @@ -import Bindings -import XCTestDynamicOverlay - -public struct UserDiscoverySetAlternative { - public var run: (UserDiscoveryConfig?) throws -> Void - - public func callAsFunction(_ config: UserDiscoveryConfig?) throws { - try run(config) - } -} - -extension UserDiscoverySetAlternative { - public static func live(_ bindingsUD: BindingsUserDiscovery) -> UserDiscoverySetAlternative { - UserDiscoverySetAlternative { config in - if let config = config { - try bindingsUD.setAlternative( - config.cert, - altAddress: config.address, - contactFile: config.contact - ) - } else { - try bindingsUD.unsetAlternativeUserDiscovery() - } - } - } -} - -extension UserDiscoverySetAlternative { - public static let unimplemented = UserDiscoverySetAlternative( - run: XCTUnimplemented("\(Self.self)") - ) -} - diff --git a/Sources/ElixxirDAppsSDK/UserDiscovery/UserDiscovery.swift b/Sources/ElixxirDAppsSDK/UserDiscovery/UserDiscovery.swift index a0935d810b19e6145274edd6d301901ceb36e31c..75c018ebddb4ea884fc073903c7a7fb7781c1670 100644 --- a/Sources/ElixxirDAppsSDK/UserDiscovery/UserDiscovery.swift +++ b/Sources/ElixxirDAppsSDK/UserDiscovery/UserDiscovery.swift @@ -1,7 +1,6 @@ import Bindings public struct UserDiscovery { - public var setAlternative: UserDiscoverySetAlternative public var getId: UserDiscoveryGetId public var getContact: UserDiscoveryGetContact public var getFacts: UserDiscoveryGetFacts @@ -14,7 +13,6 @@ public struct UserDiscovery { extension UserDiscovery { public static func live(_ bindingsUD: BindingsUserDiscovery) -> UserDiscovery { UserDiscovery( - setAlternative: .live(bindingsUD), getId: .live(bindingsUD), getContact: .live(bindingsUD), getFacts: .live(bindingsUD), @@ -28,7 +26,6 @@ extension UserDiscovery { extension UserDiscovery { public static let unimplemented = UserDiscovery( - setAlternative: .unimplemented, getId: .unimplemented, getContact: .unimplemented, getFacts: .unimplemented,