mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: remove select_dc() function
The only caller misused this function to get access to the current divecomputer. Remove it, since selection of the current divecomputer is handled by the MainWindow. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
e9aaab3c19
commit
04241ebb9d
3 changed files with 3 additions and 16 deletions
|
@ -116,8 +116,9 @@ void TabDiveInformation::updateProfile()
|
|||
volume_t *gases = get_gas_used(current_dive);
|
||||
QString volumes;
|
||||
std::vector<int> mean(current_dive->cylinders.nr), duration(current_dive->cylinders.nr);
|
||||
if (current_dive->cylinders.nr >= 0)
|
||||
per_cylinder_mean_depth(current_dive, select_dc(current_dive), mean.data(), duration.data());
|
||||
struct divecomputer *currentdc = get_dive_dc(current_dive, dc_number);
|
||||
if (currentdc && current_dive->cylinders.nr >= 0)
|
||||
per_cylinder_mean_depth(current_dive, currentdc, mean.data(), duration.data());
|
||||
volume_t sac;
|
||||
QString gaslist, SACs, separator;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue