summaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models')
-rw-r--r--qt-models/divelocationmodel.cpp13
-rw-r--r--qt-models/divelocationmodel.h1
2 files changed, 0 insertions, 14 deletions
diff --git a/qt-models/divelocationmodel.cpp b/qt-models/divelocationmodel.cpp
index c64d1990a..ae3baf9df 100644
--- a/qt-models/divelocationmodel.cpp
+++ b/qt-models/divelocationmodel.cpp
@@ -136,19 +136,6 @@ void LocationInformationModel::update()
endResetModel();
}
-bool LocationInformationModel::removeRows(int row, int, const QModelIndex&)
-{
- if(row >= rowCount())
- return false;
-
- beginRemoveRows(QModelIndex(), row, row);
- struct dive_site *ds = get_dive_site(row, &dive_site_table);
- if (ds)
- delete_dive_site(ds, &dive_site_table);
- endRemoveRows();
- return true;
-}
-
void LocationInformationModel::diveSiteDiveCountChanged(dive_site *ds)
{
int idx = get_divesite_idx(ds, &dive_site_table);
diff --git a/qt-models/divelocationmodel.h b/qt-models/divelocationmodel.h
index 4fd7b3d36..a7743f9c9 100644
--- a/qt-models/divelocationmodel.h
+++ b/qt-models/divelocationmodel.h
@@ -26,7 +26,6 @@ public:
int columnCount(const QModelIndex &parent) const;
int rowCount(const QModelIndex &parent = QModelIndex()) const;
QVariant data(const QModelIndex &index = QModelIndex(), int role = Qt::DisplayRole) const;
- bool removeRows(int row, int count, const QModelIndex & parent = QModelIndex());
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
Qt::ItemFlags flags(const QModelIndex &index) const override;