Cleanup: move TRIP_THRESHOLD into divelist.c

This macro was not used elsewhere.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-05-30 20:57:32 +02:00 committed by Dirk Hohndel
parent 529bdef0d6
commit f1c2cd375e
2 changed files with 5 additions and 4 deletions

View file

@ -303,10 +303,6 @@ extern depth_t gas_mnd(struct gasmix mix, depth_t end, const struct dive *dive,
#define SURFACE_THRESHOLD 750 /* somewhat arbitrary: only below 75cm is it really diving */
extern bool autogroup;
/* random threashold: three days without diving -> new trip
* this works very well for people who usually dive as part of a trip and don't
* regularly dive at a local facility; this is why trips are an optional feature */
#define TRIP_THRESHOLD 3600 * 24 * 3
extern void add_dive_to_trip(struct dive *, dive_trip_t *);