From c69ea1de1b023f3be9003ceb34e5fc1d6684f051 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Fri, 19 May 2017 21:59:51 +0200 Subject: Unused code: remove trip_has_selected_dives() Signed-off-by: Jan Mulder --- core/divelist.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'core/divelist.c') diff --git a/core/divelist.c b/core/divelist.c index 87151558a..5549825dc 100644 --- a/core/divelist.c +++ b/core/divelist.c @@ -95,16 +95,6 @@ dive_trip_t *find_trip_by_idx(int idx) return NULL; } -int trip_has_selected_dives(dive_trip_t *trip) -{ - struct dive *dive; - for (dive = trip->dives; dive; dive = dive->next) { - if (dive->selected) - return 1; - } - return 0; -} - /* * Get "maximal" dive gas for a dive. * Rules: -- cgit v1.2.3-70-g09d2