summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2014-07-05 13:37:49 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-05 07:43:10 -0700
commit79cd5ce83517749f221304ddf518f39c5d6d3532 (patch)
tree5677b64e034d8dedcc69e69c76861508493291c0 /dive.h
parentaafd918169322fc8bc35a750175063b260c55e67 (diff)
downloadsubsurface-79cd5ce83517749f221304ddf518f39c5d6d3532.tar.gz
Remove gasmix_is_null
The semantic of fo2==fhe==0 to mean "same gasmix as before" apparently is not used anywhere and gets in the way of the semantic "this is air". If there is really need for mix meaning "same as before", please use another value, e.g. one with a specific negative percentage. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/dive.h b/dive.h
index d4bce9d6e..09a4dda17 100644
--- a/dive.h
+++ b/dive.h
@@ -124,14 +124,6 @@ static inline bool gasmix_is_air(const struct gasmix *gasmix)
return (he == 0) && (o2 == 0 || ((o2 >= O2_IN_AIR - 1) && (o2 <= O2_IN_AIR + 1)));
}
-/* in the planner we use a null gasmix to indicate that we keep using the gas as before
- * this is BAD as a null gasmix can also be interpreted as air.
- * DANGER DANGER DANGER */
-static inline bool gasmix_is_null(const struct gasmix *gasmix)
-{
- return gasmix->he.permille == 0 && gasmix->o2.permille == 0;
-}
-
/* Linear interpolation between 'a' and 'b', when we are 'part'way into the 'whole' distance from a to b */
static inline int interpolate(int a, int b, int part, int whole)
{