summaryrefslogtreecommitdiffstats
path: root/Documentation/mobile-images/GPSConfig.jpg
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-08-21 16:01:02 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-08-21 08:40:56 -0700
commit4d15f8ee33335286c3b55b37119cdef9910ea5a3 (patch)
tree1e02b7b0d0e93a4dafab24b3ff5a184aac457cb6 /Documentation/mobile-images/GPSConfig.jpg
parent2c878ea6b634e332b2272af9251d5880cac6653f (diff)
downloadsubsurface-4d15f8ee33335286c3b55b37119cdef9910ea5a3.tar.gz
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>
Diffstat (limited to 'Documentation/mobile-images/GPSConfig.jpg')
0 files changed, 0 insertions, 0 deletions