[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 { - (instancetype)initWithRawData:(place_page::Info const &)rawData {
self = [super init]; self = [super init];
if (self) { if (self) {
_showAddPlace = rawData.ShouldShowAddPlace() || rawData.ShouldShowAddBusiness(); _showAddPlace = rawData.ShouldShowAddPlace();
_showEditPlace = rawData.ShouldShowEditPlace(); _showEditPlace = rawData.ShouldShowEditPlace();
_enableAddPlace = rawData.ShouldEnableAddPlace(); _enableAddPlace = rawData.ShouldEnableAddPlace();
_enableEditPlace = rawData.ShouldEnableEditPlace(); _enableEditPlace = rawData.ShouldEnableEditPlace();

View File

@@ -105,7 +105,6 @@ public:
/// Edit and add /// Edit and add
bool ShouldShowAddPlace() const; bool ShouldShowAddPlace() const;
bool ShouldShowAddBusiness() const { return false; } //TODO: delete function when not used in iOS any more
bool ShouldShowEditPlace() const; bool ShouldShowEditPlace() const;
bool ShouldEnableAddPlace() const { return m_canEditOrAdd; } bool ShouldEnableAddPlace() const { return m_canEditOrAdd; }