subsurface/core/subsurface-qt
Berthold Stoeger 4d15f8ee33 cleanup: remove obsolete logic in getFormattedCylinder()
getFormattedCylinder() is a helper function to format a list
of cylinders. It had that weird logic that it would skip
cylinders without description unless it is the first, which
would instead be written as "unkown".

The reason was the old statically sized cylinder array,
where it wasn't clear if a cylinder was actually in use.

This became obsolete when switching to a variable size
cylinder array. Firstly, all cylinders in the array were added
by the user. Secondly, we now also support dives without
cylinders, i.e. the first cylinder is not any different from
the rest.

Thus, remove the logic and format any cylinder without
description as being of type "unknown".

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2020-08-21 08:40:56 -07:00
..
cylinderobjecthelper.cpp Cleanup: lower-case filenames in core/subsurface-qt/ 2020-02-04 02:16:46 +01:00
cylinderobjecthelper.h Cleanup: lower-case filenames in core/subsurface-qt/ 2020-02-04 02:16:46 +01:00
divelistnotifier.cpp Cleanup: lower-case filenames in core/subsurface-qt/ 2020-02-04 02:16:46 +01:00
divelistnotifier.h cleanup: invert control-flow when resetting the core structures 2020-05-07 08:43:27 -07:00
diveobjecthelper.cpp cleanup: remove obsolete logic in getFormattedCylinder() 2020-08-21 08:40:56 -07:00
diveobjecthelper.h Grantlee: Add salinity and water type to grantlee variables 2020-05-05 17:31:47 +03:00