From d7221bdfc9d56f138469b9e2a3a4a0dd21ef5024 Mon Sep 17 00:00:00 2001 From: x7z4w Date: Wed, 8 Oct 2025 15:52:37 +0000 Subject: [PATCH] [ios] Remove "Add Business" dead code Signed-off-by: x7z4w --- .../CoreApi/PlacePageData/Common/PlacePageButtonsData.mm | 2 +- libs/map/place_page_info.hpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/iphone/CoreApi/CoreApi/PlacePageData/Common/PlacePageButtonsData.mm b/iphone/CoreApi/CoreApi/PlacePageData/Common/PlacePageButtonsData.mm index 3b2bacea1..9155eeab3 100644 --- a/iphone/CoreApi/CoreApi/PlacePageData/Common/PlacePageButtonsData.mm +++ b/iphone/CoreApi/CoreApi/PlacePageData/Common/PlacePageButtonsData.mm @@ -9,7 +9,7 @@ - (instancetype)initWithRawData:(place_page::Info const &)rawData { self = [super init]; if (self) { - _showAddPlace = rawData.ShouldShowAddPlace() || rawData.ShouldShowAddBusiness(); + _showAddPlace = rawData.ShouldShowAddPlace(); _showEditPlace = rawData.ShouldShowEditPlace(); _enableAddPlace = rawData.ShouldEnableAddPlace(); _enableEditPlace = rawData.ShouldEnableEditPlace(); diff --git a/libs/map/place_page_info.hpp b/libs/map/place_page_info.hpp index 783cf1563..80d599512 100644 --- a/libs/map/place_page_info.hpp +++ b/libs/map/place_page_info.hpp @@ -105,7 +105,6 @@ public: /// Edit and add bool ShouldShowAddPlace() const; - bool ShouldShowAddBusiness() const { return false; } //TODO: delete function when not used in iOS any more bool ShouldShowEditPlace() const; bool ShouldEnableAddPlace() const { return m_canEditOrAdd; }