summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-06-07 14:05:47 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-06-19 13:11:10 -0700
commit54d6c3f004f27a813f4b0adf48927aca5cb79cd1 (patch)
treefdb537242d7f053e3d64b0b6aa8cb7561f033fce /desktop-widgets
parent5d34103cb989414406cdbef8bc066f20562a5eaf (diff)
downloadsubsurface-54d6c3f004f27a813f4b0adf48927aca5cb79cd1.tar.gz
Cleanup: remove unnecessary get_gas_used() call
The result was not used anywhere, so why bother? Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/tab-widgets/maintab.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp
index e263874da..76c651328 100644
--- a/desktop-widgets/tab-widgets/maintab.cpp
+++ b/desktop-widgets/tab-widgets/maintab.cpp
@@ -563,8 +563,6 @@ void MainTab::updateDiveInfo()
ui.duration->setText(render_seconds_to_string(current_dive->duration.seconds));
ui.depth->setText(get_depth_string(current_dive->maxdepth, true));
- volume_t gases[MAX_CYLINDERS] = {};
- get_gas_used(&displayed_dive, gases);
int mean[MAX_CYLINDERS], duration[MAX_CYLINDERS];
per_cylinder_mean_depth(&displayed_dive, select_dc(&displayed_dive), mean, duration);