From a48221ff0bb8876fd67c65bc9a8cb84484d14da1 Mon Sep 17 00:00:00 2001 From: Alex Yesmanchyk Date: Tue, 12 Oct 2021 21:41:44 -0400 Subject: [PATCH] Removed unused access image Signed-off-by: Alex Yesmanchyk --- .../Categories/Categories/BMCCategoryCell.swift | 16 ---------------- .../Categories/Categories/BMCCategoryCell.xib | 11 ----------- 2 files changed, 27 deletions(-) diff --git a/iphone/Maps/Bookmarks/Categories/Categories/BMCCategoryCell.swift b/iphone/Maps/Bookmarks/Categories/Categories/BMCCategoryCell.swift index bdbaaafead..74a22bad5e 100644 --- a/iphone/Maps/Bookmarks/Categories/Categories/BMCCategoryCell.swift +++ b/iphone/Maps/Bookmarks/Categories/Categories/BMCCategoryCell.swift @@ -4,7 +4,6 @@ protocol BMCCategoryCellDelegate: AnyObject { } final class BMCCategoryCell: MWMTableViewCell { - @IBOutlet private weak var accessImageView: UIImageView! @IBOutlet private weak var titleLabel: UILabel! @IBOutlet private weak var subtitleLabel: UILabel! @@ -41,21 +40,6 @@ final class BMCCategoryCell: MWMTableViewCell { func categoryUpdated() { guard let category = category else { return } titleLabel.text = category.title - - switch category.accessStatus { - case .local: - accessImageView.image = UIImage(named: "ic_category_private") - case .public: - accessImageView.image = UIImage(named: "ic_category_public") - case .private: - accessImageView.image = UIImage(named: "ic_category_link") - case .authorOnly: - accessImageView.image = UIImage(named: "ic_category_private") - case .other: - assert(false, "We don't expect category with .other status here") - accessImageView.image = nil - } - subtitleLabel.text = category.placesCountTitle() visibleCheckmark.isChecked = category.isVisible } diff --git a/iphone/Maps/Bookmarks/Categories/Categories/BMCCategoryCell.xib b/iphone/Maps/Bookmarks/Categories/Categories/BMCCategoryCell.xib index 6524d34f2a..b2f6fb8f83 100644 --- a/iphone/Maps/Bookmarks/Categories/Categories/BMCCategoryCell.xib +++ b/iphone/Maps/Bookmarks/Categories/Categories/BMCCategoryCell.xib @@ -61,13 +61,6 @@ - - - - - - - @@ -77,9 +70,7 @@ - - @@ -89,7 +80,6 @@ - @@ -99,7 +89,6 @@ -