From d82a7b8b73c13451f469832d6402303ccf2ee3d3 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 24 Oct 2020 20:25:55 +0200 Subject: 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 --- qt-models/divecomputermodel.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'qt-models/divecomputermodel.cpp') 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) { -- cgit v1.2.3-70-g09d2