mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
72be8260b4
commit
d191f5af6f
2 changed files with 4 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue