mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: remove getDiveId() functions
These functions in DiveListSortModel and DiveListModel had no users. Remove them. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
09a7736ae1
commit
2dd0187fe8
2 changed files with 0 additions and 15 deletions
|
@ -61,12 +61,6 @@ int DiveListSortModel::shown()
|
|||
return rowCount();
|
||||
}
|
||||
|
||||
int DiveListSortModel::getDiveId(int idx)
|
||||
{
|
||||
DiveListModel *mySourceModel = qobject_cast<DiveListModel *>(sourceModel());
|
||||
return mySourceModel->getDiveId(mapToSource(index(idx,0)).row());
|
||||
}
|
||||
|
||||
int DiveListSortModel::getIdxForId(int id)
|
||||
{
|
||||
for (int i = 0; i < rowCount(); i++) {
|
||||
|
@ -231,13 +225,6 @@ int DiveListModel::rowCount(const QModelIndex &) const
|
|||
return m_dives.count();
|
||||
}
|
||||
|
||||
int DiveListModel::getDiveId(int idx) const
|
||||
{
|
||||
if (idx < 0 || idx >= m_dives.count())
|
||||
return -1;
|
||||
return m_dives[idx]->id();
|
||||
}
|
||||
|
||||
int DiveListModel::getDiveIdx(int id) const
|
||||
{
|
||||
int i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue