mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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
2 changed files with 0 additions and 8 deletions
|
@ -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…
Reference in a new issue