diff --git a/core/trip.c b/core/trip.c index cbc906960..53c6a4b15 100644 --- a/core/trip.c +++ b/core/trip.c @@ -153,17 +153,6 @@ dive_trip_t *create_trip_from_dive(struct dive *dive) return trip; } -dive_trip_t *create_and_hookup_trip_from_dive(struct dive *dive, struct trip_table *trip_table_arg) -{ - dive_trip_t *dive_trip; - - dive_trip = create_trip_from_dive(dive); - - add_dive_to_trip(dive, dive_trip); - insert_trip(dive_trip, trip_table_arg); - return dive_trip; -} - /* random threshold: 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 */ diff --git a/core/trip.h b/core/trip.h index 260bf3234..249fa464c 100644 --- a/core/trip.h +++ b/core/trip.h @@ -43,7 +43,6 @@ extern void sort_trip_table(struct trip_table *table); extern dive_trip_t *alloc_trip(void); extern dive_trip_t *create_trip_from_dive(struct dive *dive); -extern dive_trip_t *create_and_hookup_trip_from_dive(struct dive *dive, struct trip_table *trip_table_arg); extern dive_trip_t *get_dives_to_autogroup(struct dive_table *table, int start, int *from, int *to, bool *allocated); extern dive_trip_t *get_trip_for_new_dive(struct dive *new_dive, bool *allocated); extern dive_trip_t *get_trip_by_uniq_id(int tripId);