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);