From f1cbc9fa21b6111672fa8505e315531d22152c8d Mon Sep 17 00:00:00 2001 From: bpedryc Date: Thu, 1 Jun 2023 15:07:44 +0200 Subject: [PATCH] Remove redundant cancelling of cancellable flow subscribers --- ios/KaMPKitiOS/BreedListScreen.swift | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ios/KaMPKitiOS/BreedListScreen.swift b/ios/KaMPKitiOS/BreedListScreen.swift index 41220be2..e02201ee 100644 --- a/ios/KaMPKitiOS/BreedListScreen.swift +++ b/ios/KaMPKitiOS/BreedListScreen.swift @@ -49,11 +49,7 @@ class ObservableBreedModel: ObservableObject { } func deactivate() { - cancellables.forEach { $0.cancel() } - cancellables.removeAll() - viewModel?.clear() - viewModel = nil } func onBreedFavorite(_ breed: Breed) {