diff options
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/maplocationmodel.cpp | 6 | ||||
-rw-r--r-- | qt-models/maplocationmodel.h | 3 |
2 files changed, 0 insertions, 9 deletions
diff --git a/qt-models/maplocationmodel.cpp b/qt-models/maplocationmodel.cpp index 3aad02980..d1e9c12aa 100644 --- a/qt-models/maplocationmodel.cpp +++ b/qt-models/maplocationmodel.cpp @@ -236,12 +236,6 @@ void MapLocationModel::setSelected(const QVector<dive_site *> &divesites) m_selectedDs = divesites; } -bool MapLocationModel::isSelected(const QVariant &dsVariant) const -{ - dive_site *ds = dsVariant.value<dive_site *>(); - return ds && m_selectedDs.contains(ds); -} - MapLocation *MapLocationModel::getMapLocation(const struct dive_site *ds) { MapLocation *location; diff --git a/qt-models/maplocationmodel.h b/qt-models/maplocationmodel.h index 05a772bcf..ddf0a4a11 100644 --- a/qt-models/maplocationmodel.h +++ b/qt-models/maplocationmodel.h @@ -69,9 +69,6 @@ public: MapLocation *getMapLocation(const struct dive_site *ds); const QVector<dive_site *> &selectedDs() const; Q_INVOKABLE void setSelected(struct dive_site *ds); - // The dive site is passed as a QVariant, because a null-QVariant is not automatically - // transformed into a null pointer and warning messages are spewed onto the console. - Q_INVOKABLE bool isSelected(const QVariant &ds) const; protected: QHash<int, QByteArray> roleNames() const override; |