diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-08 21:42:34 +1100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-08 22:14:53 +1100 |
commit | 3e66319e822a148ef4487aa459d7c99d2b09474f (patch) | |
tree | ef72d6ae99293d3451a934b336238b230f71473c /planner.c | |
parent | 74ff9f1eadb4381506b7f3b3e24697da6a5dec4f (diff) | |
download | subsurface-3e66319e822a148ef4487aa459d7c99d2b09474f.tar.gz |
Remove the tissue_tolerated_ambient_pressure[] array
It wasn't really used. The only reader of that array was the same thing
that wrote the entry, so instead of storing it in the array (and never
using it ever after), just use the calculation directly, and remove the
array entirely.
This makes it much easier to see that the gradient factors are not used
for any long-term state. We use them only for the pressure tolerance
calculations at that particular point, and there is no "history"
associated with it.
This matters mainly because it means that we can do all the deco
initialization and setup without worrying about exactly which gradient
factors we will use. And we can use different gradient factors for
diving and planning and no-fly calculations without the GF choice
affecting the tissue state.
Acked-by: Robert C. Helling <helling@lmu.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
0 files changed, 0 insertions, 0 deletions