summaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/dive.h')
-rw-r--r--core/dive.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/core/dive.h b/core/dive.h
index cc21c3447..8b98d3b49 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -278,13 +278,6 @@ struct divecomputer {
#define W_IDX_PRIMARY 0
#define W_IDX_SECONDARY 1
-typedef enum {
- TF_NONE,
- NO_TRIP,
- IN_TRIP,
- NUM_TRIPFLAGS
-} tripflag_t;
-
struct dive_table {
int nr, allocated;
struct dive **dives;
@@ -307,7 +300,7 @@ extern dive_trip_t *dive_trip_list;
struct picture;
struct dive {
int number;
- tripflag_t tripflag;
+ bool notrip; /* Don't autogroup this dive to a trip */
dive_trip_t *divetrip;
bool selected;
bool hidden_by_filter;
@@ -418,8 +411,6 @@ extern bool autogroup;
* regularly dive at a local facility; this is why trips are an optional feature */
#define TRIP_THRESHOLD 3600 * 24 * 3
-#define DIVE_NEEDS_TRIP(_dive) ((_dive)->tripflag == TF_NONE)
-
extern void add_dive_to_trip(struct dive *, dive_trip_t *);
struct dive *unregister_dive(int idx);