diff options
author | Anton Lundin <glance@acc.umu.se> | 2013-12-11 00:53:27 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-11 03:13:30 +0100 |
commit | 25c3eb26dc844f02dc229fb51410eadbba81326b (patch) | |
tree | 7051a8ab6b3369de3b989e8ad526f29f4f07c3ac /profile.c | |
parent | 511f8b8885241d026fb4656943424b91f04a7ddf (diff) | |
download | subsurface-25c3eb26dc844f02dc229fb51410eadbba81326b.tar.gz |
Remove some dead code
last_pressure is updated a couple of lines later, so no need to do it
here.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r-- | profile.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -1393,12 +1393,9 @@ void compare_samples(struct plot_data *e1, struct plot_data *e2, char *buf, int if (data->depth > max_depth) max_depth = data->depth; /* Try to detect gas changes */ - if (GET_PRESSURE(data) > last_pressure+2000) - last_pressure = GET_PRESSURE(data); - else + if (GET_PRESSURE(data) < last_pressure+2000) bar_used += last_pressure-GET_PRESSURE(data); - count+=1; last_sec = data->sec; last_pressure = GET_PRESSURE(data); |