summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-08-31 23:37:23 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-09-06 11:48:47 -0700
commitb9c35e21eafc347eba073ba8deb91b7052dbfbae (patch)
treea421289f7ac18e2e5a96cab5644f72054306d8ed
parent8e2d3254a2c3ff129af6047ada659de1976b387e (diff)
downloadsubsurface-b9c35e21eafc347eba073ba8deb91b7052dbfbae.tar.gz
Cleanup: remove MapLocationModel::get() function
It was not called anymore. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r--qt-models/maplocationmodel.cpp7
-rw-r--r--qt-models/maplocationmodel.h1
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();