mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-01-19 06:59:10 +00:00
Drop unused code in AppContext
This commit is contained in:
parent
f2a141a189
commit
619ff807fd
@ -106,22 +106,6 @@ private extension AppContext {
|
||||
}
|
||||
|
||||
private extension AppContext {
|
||||
func installSavedProfile(_ profile: Profile) async throws {
|
||||
try await tunnel.install(profile, processor: profileProcessor)
|
||||
}
|
||||
|
||||
func uninstallRemovedProfiles(withIds profileIds: [Profile.ID]) {
|
||||
Task {
|
||||
for id in profileIds {
|
||||
do {
|
||||
try await tunnel.uninstall(profileId: id)
|
||||
} catch {
|
||||
pp_log(.app, .error, "Unable to uninstall profile \(id): \(error)")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func syncTunnelIfCurrentProfile(_ profile: Profile) {
|
||||
guard profile.id == tunnel.currentProfile?.id else {
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user