mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
[ios] Remove "Add Business" dead code
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
@@ -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; }
|
||||||
|
|||||||
Reference in New Issue
Block a user