From e3577ffd7efd1fdb0cfbe8877a7bebff6016054c Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 15 Jul 2019 21:55:23 +0200 Subject: Cleanup: Remove unused function calls in main tab per_cylinder_mean_depth() and selected_dives_gas_parts() are used in the dive-information and statistics tab, respectively. Nevertheless, these functions are called on the main tab as well and the result is trashed. Therefore remove the calls. Must have been an artifact. Signed-off-by: Berthold Stoeger --- desktop-widgets/tab-widgets/maintab.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index 4bb7f3bb0..862578ba0 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -9,7 +9,6 @@ #include "desktop-widgets/mainwindow.h" #include "desktop-widgets/mapwidget.h" #include "core/qthelper.h" -#include "core/statistics.h" #include "core/trip.h" #include "qt-models/diveplannermodel.h" #include "desktop-widgets/divelistview.h" @@ -564,12 +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)); - int mean[MAX_CYLINDERS], duration[MAX_CYLINDERS]; - per_cylinder_mean_depth(&displayed_dive, select_dc(&displayed_dive), mean, duration); - - volume_t o2_tot = {}, he_tot = {}; - selected_dives_gas_parts(&o2_tot, &he_tot); - if(ui.locationTags->text().isEmpty()) ui.locationTags->hide(); else -- cgit v1.2.3-70-g09d2