Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Remove the four blank lines left doubled where code was taken out

Țugui Dragoș2db7e8e6546f
diff --git a/Packages/PeelCore/Sources/PeelCore/Apps/IntelInspector.swift b/Packages/PeelCore/Sources/PeelCore/Apps/IntelInspector.swift
index ef737f3e..4448d521 100644
--- a/Packages/PeelCore/Sources/PeelCore/Apps/IntelInspector.swift
+++ b/Packages/PeelCore/Sources/PeelCore/Apps/IntelInspector.swift
@@ -367,7 +367,6 @@ public enum IntelInspector {
return names.map { directory.appending(path: $0) }
}
-
/// Notes `program`, which macOS wouldn't let Peel read, or the folder around it Peel can't look into.
private static func noteRefused(_ program: URL, in unreadable: inout [URL]) {
unreadable.append(
diff --git a/Packages/PeelCore/Sources/PeelCore/Updates/UpdateChecker.swift b/Packages/PeelCore/Sources/PeelCore/Updates/UpdateChecker.swift
index 731c5917..024c0d84 100644
--- a/Packages/PeelCore/Sources/PeelCore/Updates/UpdateChecker.swift
+++ b/Packages/PeelCore/Sources/PeelCore/Updates/UpdateChecker.swift
@@ -334,7 +334,6 @@ public struct UpdateChecker: Sendable {
return await fetchReply(url)
}
-
/// The errors only a Mac that isn't online gets. Any other, such as a connection lost, which a server that closes
/// it without answering gives too, means so only while this Mac has no network path.
static func meansOffline(_ error: any Error) -> Bool {
diff --git a/Peel/PeelApp.swift b/Peel/PeelApp.swift
index bad1441b..42dcf9b8 100644
--- a/Peel/PeelApp.swift
+++ b/Peel/PeelApp.swift
@@ -370,7 +370,6 @@ struct PeelApp: App {
await homeChecked
}
-
/// Whether the menu bar item shows. `MenuBarExtra` writes it back at every scene update, and each write to an
/// `AppStorage` makes every `AppStorage` in the app read again, so a write of the value it holds is left out.
private var menuBarItemIsInserted: Binding<Bool> {
diff --git a/Peel/Views/Settings/SettingsView.swift b/Peel/Views/Settings/SettingsView.swift
index 0f9968a3..3b7f590c 100644
--- a/Peel/Views/Settings/SettingsView.swift
+++ b/Peel/Views/Settings/SettingsView.swift
@@ -638,7 +638,6 @@ extension GeneralSettingsView {
)
}
-
private var waitsForAnAdministrator: Bool {
SelfUninstall.waitsForAnAdministrator(standing: helper.standing, status: helper.status)
}