aboutsummaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-10-14 19:48:07 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-15 21:00:17 -0400
commit253510c55586c06e42b26e480db3b19a5f1a4a3a (patch)
tree87add3b177a21d9bb5cf946b3b2545d42904ec16 /core/dive.h
parent08827cc5f6063a2e3720b9d821c9146fac74a0bd (diff)
downloadsubsurface-253510c55586c06e42b26e480db3b19a5f1a4a3a.tar.gz
Cleanup: remove apparently dead code in sanitize_cylinder_type()
sanitize_cylinder_type(), which is indirectly called from fixup_dive(), had ft^3 -> mliter conversion code, which was executed on the condition "xml_parsing_units.volume == CUFT". But nowhere in the code base would xml_parsing_units.volume ever be set to non-metric. Moreover, xml_parsing_units reflects the units of the latest parsed XML file, but fixup_dive() is called in numerous contexts not related to XML parsing. Therefore, the whole piece of code seems highly questionable. Remove this code. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/dive.h')
0 files changed, 0 insertions, 0 deletions