[ios] Remove "Add Business" dead code

Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
x7z4w
2025-10-08 15:52:37 +00:00
parent efc8e44350
commit d7221bdfc9
2 changed files with 1 additions and 2 deletions

View File

@@ -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();

View File

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