diff --git a/Xcodes/Backend/AppState.swift b/Xcodes/Backend/AppState.swift index 1620445..4e4c1fc 100644 --- a/Xcodes/Backend/AppState.swift +++ b/Xcodes/Backend/AppState.swift @@ -209,10 +209,6 @@ class AppState: ObservableObject { // MARK: - Uninstall func uninstall(id: Xcode.ID) { - if helperInstallState == .notInstalled { - installHelper() - } - guard let installedXcode = Current.files.installedXcodes(Path.root/"Applications").first(where: { $0.version == id }), uninstallPublisher == nil @@ -318,8 +314,6 @@ class AppState: ObservableObject { private func uninstallXcode(path: Path) -> AnyPublisher { - let connectionErrorSubject = PassthroughSubject() - return Deferred { Future { promise in do { @@ -330,13 +324,6 @@ class AppState: ObservableObject { } } } - // Take values, but fail when connectionErrorSubject fails - .zip( - connectionErrorSubject - .prepend("") - .map { _ in Void() } - ) - .map { $0.0 } .eraseToAnyPublisher() }