From 6b6bb9b10b18e47dce29a1b57227848c04c2f2d5 Mon Sep 17 00:00:00 2001 From: kirill Date: Mon, 18 Jan 2021 22:30:47 +0700 Subject: [PATCH] [ios] disable bookmark synchronization Signed-off-by: kirill --- .../Bookmarks/Categories/BMCView/BMCViewController.swift | 8 -------- .../Categories/BMCViewModel/BMCDefaultViewModel.swift | 3 --- 2 files changed, 11 deletions(-) diff --git a/iphone/Maps/Bookmarks/Categories/BMCView/BMCViewController.swift b/iphone/Maps/Bookmarks/Categories/BMCView/BMCViewController.swift index 863dde4e57..d27c11bcb1 100644 --- a/iphone/Maps/Bookmarks/Categories/BMCView/BMCViewController.swift +++ b/iphone/Maps/Bookmarks/Categories/BMCView/BMCViewController.swift @@ -160,14 +160,6 @@ final class BMCViewController: MWMViewController { Statistics.logEvent(kStatBookmarksListSettingsClick, withParameters: [kStatOption : kStatSendAsFile]) })) - let share = L("sharing_options") - let shareAction = UIAlertAction(title: share, style: .default, handler: { _ in - self.shareCategory(category: category, anchor: anchor) - Statistics.logEvent(kStatBookmarksListSettingsClick, - withParameters: [kStatOption : kStatSharingOptions]) - }) - shareAction.isEnabled = BookmarksManager.shared().isCategoryNotEmpty(category.categoryId) - actionSheet.addAction(shareAction) let delete = L("delete_list") let deleteAction = UIAlertAction(title: delete, style: .destructive, handler: { [viewModel] _ in viewModel!.deleteCategory(at: index) diff --git a/iphone/Maps/Bookmarks/Categories/BMCViewModel/BMCDefaultViewModel.swift b/iphone/Maps/Bookmarks/Categories/BMCViewModel/BMCDefaultViewModel.swift index 8459db1661..3a7fd5b1d1 100644 --- a/iphone/Maps/Bookmarks/Categories/BMCViewModel/BMCDefaultViewModel.swift +++ b/iphone/Maps/Bookmarks/Categories/BMCViewModel/BMCDefaultViewModel.swift @@ -66,9 +66,6 @@ final class BMCDefaultViewModel: NSObject { func reloadData() { sections = [] - sections.append(.permissions) - setPermissions() - if manager.areBookmarksLoaded() { sections.append(.categories) setCategories()