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:
parent
8e2d3254a2
commit
b9c35e21ea
@ -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());
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user