From a8c9781205f3c46eadd408fe28c43bc02caf6cab Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 8 Jun 2024 15:21:14 +0200 Subject: [PATCH] cleanup: remove unused function create_and_hookup_trip_from_dive() It seems that the last user was removed 5 years ago: ff9506b21? Signed-off-by: Berthold Stoeger --- core/trip.c | 11 ----------- core/trip.h | 1 - 2 files changed, 12 deletions(-) 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);