diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-07-15 21:55:23 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-07-18 05:47:27 -0700 |
commit | e3577ffd7efd1fdb0cfbe8877a7bebff6016054c (patch) | |
tree | b3aa0cbec7fe9bcc1db424b51f93c9941c5f7b37 | |
parent | 8f119dcf72db445530b39e0722c3afad7c130efb (diff) | |
download | subsurface-e3577ffd7efd1fdb0cfbe8877a7bebff6016054c.tar.gz |
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 <bstoeger@mail.tuwien.ac.at>
-rw-r--r-- | desktop-widgets/tab-widgets/maintab.cpp | 7 |
1 files changed, 0 insertions, 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 |