diff options
-rw-r--r-- | qt-models/maplocationmodel.cpp | 7 | ||||
-rw-r--r-- | qt-models/maplocationmodel.h | 1 |
2 files changed, 0 insertions, 8 deletions
diff --git a/qt-models/maplocationmodel.cpp b/qt-models/maplocationmodel.cpp index d1e9c12aa..e5d7fa2d5 100644 --- a/qt-models/maplocationmodel.cpp +++ b/qt-models/maplocationmodel.cpp @@ -121,13 +121,6 @@ int MapLocationModel::count() return m_mapLocations.size(); } -MapLocation *MapLocationModel::get(int row) -{ - if (row < 0 || row >= m_mapLocations.size()) - return NULL; - return m_mapLocations.at(row); -} - void MapLocationModel::add(MapLocation *location) { beginInsertRows(QModelIndex(), m_mapLocations.size(), m_mapLocations.size()); diff --git a/qt-models/maplocationmodel.h b/qt-models/maplocationmodel.h index 23b30cb8d..15000bc1d 100644 --- a/qt-models/maplocationmodel.h +++ b/qt-models/maplocationmodel.h @@ -57,7 +57,6 @@ public: MapLocationModel(QObject *parent = NULL); ~MapLocationModel(); - Q_INVOKABLE MapLocation *get(int row); QVariant data(const QModelIndex &index, int role) const override; int rowCount(const QModelIndex &parent) const override; int count(); |