mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-03-25 08:55:46 +00:00
Remove some unused code
This commit is contained in:
parent
72bdadb796
commit
7d1e22e668
1 changed files with 0 additions and 13 deletions
|
|
@ -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<Void, Error> {
|
||||
let connectionErrorSubject = PassthroughSubject<String, Error>()
|
||||
|
||||
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()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue