mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
3358bff432
commit
d82a7b8b73
2 changed files with 0 additions and 9 deletions
|
@ -89,14 +89,6 @@ bool DiveComputerModel::setData(const QModelIndex &index, const QVariant &value,
|
||||||
return true;
|
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
|
// Convenience function to access alternative columns
|
||||||
static QString getData(const QModelIndex &idx, int col)
|
static QString getData(const QModelIndex &idx, int col)
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,7 +23,6 @@ public:
|
||||||
|
|
||||||
private
|
private
|
||||||
slots:
|
slots:
|
||||||
void remove(const QModelIndex &index);
|
|
||||||
void update();
|
void update();
|
||||||
void deviceAdded(int idx);
|
void deviceAdded(int idx);
|
||||||
void deviceDeleted(int idx);
|
void deviceDeleted(int idx);
|
||||||
|
|
Loading…
Add table
Reference in a new issue