From a8d8ec4ae9e7f34165af01a2cf9c562b7aa9516f Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Sat, 7 Nov 2015 23:06:59 +0200 Subject: diveplannermodel.cpp: move unused variables into a commented section Signed-off-by: Lubomir I. Ivanov --- qt-models/diveplannermodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-models/diveplannermodel.cpp') 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--) -- cgit v1.2.3-70-g09d2