From 8e9dbe02483c2566b45662e82edb041470b80363 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Fri, 1 Aug 2025 13:32:53 +0200 Subject: [PATCH] [ios] Removed unused variables Signed-off-by: Alexander Borsuk --- iphone/Maps/Core/iCloud/MetadataItem.swift | 3 ++- iphone/Maps/UI/PlacePage/PlacePageInteractor.swift | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/iphone/Maps/Core/iCloud/MetadataItem.swift b/iphone/Maps/Core/iCloud/MetadataItem.swift index 75e4c297d..59d76adea 100644 --- a/iphone/Maps/Core/iCloud/MetadataItem.swift +++ b/iphone/Maps/Core/iCloud/MetadataItem.swift @@ -68,7 +68,8 @@ extension CloudMetadataItem { .ubiquitousItemDownloadingErrorKey, .ubiquitousItemUploadingErrorKey]) guard let downloadStatus = resources.ubiquitousItemDownloadingStatus, - let percentDownloaded = resources.ubiquitousItemDownloadingStatus, + // Not used. + // let percentDownloaded = resources.ubiquitousItemDownloadingStatus, let lastModificationDate = resources.contentModificationDate?.roundedTime, let hasUnresolvedConflicts = resources.ubiquitousItemHasUnresolvedConflicts else { LOG(.error, "Failed to initialize CloudMetadataItem from \(fileUrl) resources: \(resources.allValues)") diff --git a/iphone/Maps/UI/PlacePage/PlacePageInteractor.swift b/iphone/Maps/UI/PlacePage/PlacePageInteractor.swift index b55aca4ae..5d78380cf 100644 --- a/iphone/Maps/UI/PlacePage/PlacePageInteractor.swift +++ b/iphone/Maps/UI/PlacePage/PlacePageInteractor.swift @@ -215,7 +215,7 @@ extension PlacePageInteractor: PlacePageEditBookmarkOrTrackViewControllerDelegat case .bookmark(let bookmarkData): let bookmarkColor = BookmarkColor.bookmarkColor(from: color) ?? bookmarkData.color MWMPlacePageManagerHelper.updateBookmark(placePageData, color: bookmarkColor, category: category) - case .track(let trackData): + case .track: MWMPlacePageManagerHelper.updateTrack(placePageData, color: color, category: category) } }