aboutsummaryrefslogtreecommitdiffstats
path: root/subsurface-core/configuredivecomputerthreads.cpp
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2016-02-21 15:09:46 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-21 16:32:45 -0800
commit1f7f3c4af59cea6a76a68bdfea95c3ae4f86a615 (patch)
tree0aaa9aae1f37c0bc0f0ad0aee1664b2a38a23974 /subsurface-core/configuredivecomputerthreads.cpp
parent5da94865334b1dd0fe5479deb131973d9740e2a2 (diff)
downloadsubsurface-1f7f3c4af59cea6a76a68bdfea95c3ae4f86a615.tar.gz
pressure interpolation: get rid of pointless and confusing code
In the function fill_missing_tank_pressures(), we only ever call get_pr_interpolate_data() if "pressure" is zero. So passing it in as an argument, and then testing whether it is zero or not, is just totally pointless, and only obfuscates things. This whole thing seems to be due to people editing the code over time, with the tests becoming superfluous as the code around it changed, and nobody looking at whether it actually made sense any more. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/configuredivecomputerthreads.cpp')
0 files changed, 0 insertions, 0 deletions