From 71540075898138091f3c226c1ba04e453542afc4 Mon Sep 17 00:00:00 2001 From: Alex Yesmanchyk Date: Tue, 12 Oct 2021 21:08:41 -0400 Subject: [PATCH] Removed access string completely Signed-off-by: Alex Yesmanchyk --- .../Categories/Categories/BMCCategoryCell.swift | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/iphone/Maps/Bookmarks/Categories/Categories/BMCCategoryCell.swift b/iphone/Maps/Bookmarks/Categories/Categories/BMCCategoryCell.swift index 9b6c8607f0..bdbaaafead 100644 --- a/iphone/Maps/Bookmarks/Categories/Categories/BMCCategoryCell.swift +++ b/iphone/Maps/Bookmarks/Categories/Categories/BMCCategoryCell.swift @@ -42,28 +42,21 @@ final class BMCCategoryCell: MWMTableViewCell { guard let category = category else { return } titleLabel.text = category.title - let accessString: String switch category.accessStatus { case .local: - accessString = L("not_shared") accessImageView.image = UIImage(named: "ic_category_private") case .public: - accessString = L("public_access") accessImageView.image = UIImage(named: "ic_category_public") case .private: - accessString = L("limited_access") accessImageView.image = UIImage(named: "ic_category_link") case .authorOnly: - accessString = L("access_rules_author_only") accessImageView.image = UIImage(named: "ic_category_private") case .other: assert(false, "We don't expect category with .other status here") accessImageView.image = nil - accessString = "" } - let placesString = category.placesCountTitle() - subtitleLabel.text = accessString.count > 0 ? "\(accessString) • \(placesString)" : placesString + subtitleLabel.text = category.placesCountTitle() visibleCheckmark.isChecked = category.isVisible } }