diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-11-07 23:15:49 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-07 22:26:33 -0800 |
commit | 80a67b7a2734bf117b2c648b1d689ddb17ba2a42 (patch) | |
tree | 88e3d7897ac5981e92ed6a86e8fedd007c24c542 | |
parent | cab9870be36a54934543c750310d0e0abfded3e6 (diff) | |
download | subsurface-80a67b7a2734bf117b2c648b1d689ddb17ba2a42.tar.gz |
profile.c: remove unused variables
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
-rw-r--r-- | subsurface-core/profile.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/subsurface-core/profile.c b/subsurface-core/profile.c index 8cc6efb12..1969a6fac 100644 --- a/subsurface-core/profile.c +++ b/subsurface-core/profile.c @@ -723,7 +723,6 @@ static int sac_between(struct dive *dive, struct plot_data *first, struct plot_d double pressuretime; pressure_t a, b; cylinder_t *cyl; - int duration; if (first == last) return 0; @@ -811,10 +810,7 @@ static void fill_sac(struct dive *dive, struct plot_info *pi, int idx) static void calculate_sac(struct dive *dive, struct plot_info *pi) { - int i = 0, last = 0; - struct plot_data *last_entry = NULL; - - for (i = 0; i < pi->nr; i++) + for (int i = 0; i < pi->nr; i++) fill_sac(dive, pi, i); } |