diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-11-07 23:06:59 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-07 22:26:33 -0800 |
commit | a8d8ec4ae9e7f34165af01a2cf9c562b7aa9516f (patch) | |
tree | 5ce2d45739266d674f6184e67dde51a46dc513a0 /qt-models/diveplannermodel.cpp | |
parent | 44c0f978b33154611966b3f9db4c7e0cf54a9ffc (diff) | |
download | subsurface-a8d8ec4ae9e7f34165af01a2cf9c562b7aa9516f.tar.gz |
diveplannermodel.cpp: move unused variables into a commented section
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-models/diveplannermodel.cpp')
-rw-r--r-- | qt-models/diveplannermodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index 70a7c6f62..5e2315318 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -691,8 +691,6 @@ divedatapoint DivePlannerPointsModel::at(int row) void DivePlannerPointsModel::remove(const QModelIndex &index) { - int i; - int rows = rowCount(); if (index.column() != REMOVE || rowCount() == 1) return; @@ -707,6 +705,8 @@ void DivePlannerPointsModel::remove(const QModelIndex &index) * remove method that will pass the first and last index of the * removed rows, and remove those in a go. */ +// int i; +// int rows = rowCount(); // if (QApplication::keyboardModifiers() & Qt::ControlModifier) { // beginRemoveRows(QModelIndex(), index.row(), rows - 1); // for (i = rows - 1; i >= index.row(); i--) |