aboutsummaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-10-24 20:25:55 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-25 13:59:04 -0700
commitd82a7b8b73c13451f469832d6402303ccf2ee3d3 (patch)
tree80721af1a7a06fafd60d5fae8c8d3791da9f6e4d /qt-models
parent3358bff4322714b59c6f54e67a0db980f215a29d (diff)
downloadsubsurface-d82a7b8b73c13451f469832d6402303ccf2ee3d3.tar.gz
cleanup: remove DiveComputerModel::remove
This was used by the DiveComputerDialog, which does not exist anymore. The new tab uses the function in the corresponding sorted model. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models')
-rw-r--r--qt-models/divecomputermodel.cpp8
-rw-r--r--qt-models/divecomputermodel.h1
2 files changed, 0 insertions, 9 deletions
diff --git a/qt-models/divecomputermodel.cpp b/qt-models/divecomputermodel.cpp
index 8cc87a2a7..b83679a03 100644
--- a/qt-models/divecomputermodel.cpp
+++ b/qt-models/divecomputermodel.cpp
@@ -89,14 +89,6 @@ bool DiveComputerModel::setData(const QModelIndex &index, const QVariant &value,
return true;
}
-void DiveComputerModel::remove(const QModelIndex &index)
-{
- int row = index.row();
- if (row < 0 || row >= (int)device_table.devices.size())
- return;
- Command::removeDevice(index.row());
-}
-
// Convenience function to access alternative columns
static QString getData(const QModelIndex &idx, int col)
{
diff --git a/qt-models/divecomputermodel.h b/qt-models/divecomputermodel.h
index a68542ff1..f82d492ce 100644
--- a/qt-models/divecomputermodel.h
+++ b/qt-models/divecomputermodel.h
@@ -23,7 +23,6 @@ public:
private
slots:
- void remove(const QModelIndex &index);
void update();
void deviceAdded(int idx);
void deviceDeleted(int idx);