Cleanup: remove MapLocationModel::get() function

It was not called anymore.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-08-31 23:37:23 +02:00 committed by Dirk Hohndel
parent 8e2d3254a2
commit b9c35e21ea
2 changed files with 0 additions and 8 deletions

View file

@ -121,13 +121,6 @@ int MapLocationModel::count()
return m_mapLocations.size(); 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) void MapLocationModel::add(MapLocation *location)
{ {
beginInsertRows(QModelIndex(), m_mapLocations.size(), m_mapLocations.size()); beginInsertRows(QModelIndex(), m_mapLocations.size(), m_mapLocations.size());

View file

@ -57,7 +57,6 @@ public:
MapLocationModel(QObject *parent = NULL); MapLocationModel(QObject *parent = NULL);
~MapLocationModel(); ~MapLocationModel();
Q_INVOKABLE MapLocation *get(int row);
QVariant data(const QModelIndex &index, int role) const override; QVariant data(const QModelIndex &index, int role) const override;
int rowCount(const QModelIndex &parent) const override; int rowCount(const QModelIndex &parent) const override;
int count(); int count();