From b9c35e21eafc347eba073ba8deb91b7052dbfbae Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 31 Aug 2019 23:37:23 +0200 Subject: [PATCH] Cleanup: remove MapLocationModel::get() function It was not called anymore. Signed-off-by: Berthold Stoeger --- qt-models/maplocationmodel.cpp | 7 ------- qt-models/maplocationmodel.h | 1 - 2 files changed, 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();