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; }