summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-04-18 13:06:21 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-04-18 13:06:21 -0700
commitd191f5af6f78068a9ff2655a8b9aa354f4c85e94 (patch)
tree59fbb2c21ead3d836ecf7d8dbdc367680ce89dc7 /qt-ui
parent72be8260b46ba54c72264488eaf24269fdb21e27 (diff)
downloadsubsurface-d191f5af6f78068a9ff2655a8b9aa354f4c85e94.tar.gz
Remove unused variables and fix signed/unsigned mismatch
The depth types are unsigned for dive plan datapoints. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/diveplanner.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index 2f55fd564..94fcc1b1c 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -520,9 +520,7 @@ void DivePlannerGraphics::drawProfile()
computedPoints.push_back(i);
plannerModel->removeSelectedPoints(computedPoints);
- int lastdepth = 0;
- int lasto2 = 0;
- int lasthe = 0;
+ unsigned int lastdepth = 0;
for (dp = diveplan.dp; dp != NULL; dp = dp->next) {
if (dp->time == 0) // magic entry for available tank
continue;
@@ -538,8 +536,6 @@ void DivePlannerGraphics::drawProfile()
if (dp->depth == lastdepth || dp->o2 != dp->next->o2 || dp->he != dp->next->he)
plannerModel->addStop(dp->depth, dp->time, dp->o2, dp->he, 0, false);
lastdepth = dp->depth;
- lasto2 = dp->o2;
- lasthe = dp->he;
}
}
lastx = xpos;