From 54d6c3f004f27a813f4b0adf48927aca5cb79cd1 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 7 Jun 2019 14:05:47 +0200 Subject: Cleanup: remove unnecessary get_gas_used() call The result was not used anywhere, so why bother? Signed-off-by: Berthold Stoeger --- desktop-widgets/tab-widgets/maintab.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'desktop-widgets') 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); -- cgit v1.2.3-70-g09d2