aboutsummaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
authorGravatar Nathan Samson <nathansamson@gmail.com>2011-09-04 12:59:54 +0200
committerGravatar Nathan Samson <nathansamson@gmail.com>2011-09-04 15:18:20 +0200
commitf12382c66f2b3deddf38f7d51fda3a2c75a0c5fa (patch)
tree9ff803a5b111d43845bb36d08fb9159b245ab51b /dive.c
parenta6b9eaee0aa2ff67482560f4401e0dc6f2c79237 (diff)
downloadsubsurface-f12382c66f2b3deddf38f7d51fda3a2c75a0c5fa.tar.gz
Removed the unused startemp and enttemp calculations. This fixes a compiler warning too.
Signed-off-by: Nathan Samson <nathansamson@gmail.com>
Diffstat (limited to 'dive.c')
-rw-r--r--dive.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/dive.c b/dive.c
index 8c81a3d51..f758785d9 100644
--- a/dive.c
+++ b/dive.c
@@ -34,7 +34,6 @@ struct dive *fixup_dive(struct dive *dive)
int lasttime = 0;
int start = -1, end = -1;
int startpress = 0, endpress = 0;
- int starttemp = 0, endtemp = 0;
int maxdepth = 0, mintemp = 0;
int lastdepth = 0;
@@ -60,9 +59,6 @@ struct dive *fixup_dive(struct dive *dive)
startpress = press;
}
if (temp) {
- endtemp = temp;
- if (!starttemp)
- starttemp = temp;
if (!mintemp || temp < mintemp)
mintemp = temp;
}