diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-10-07 13:43:17 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-10-07 13:43:17 -0700 |
commit | 054406b420c7a4bbabbe839f25966fa121adfb5f (patch) | |
tree | 963cfce87ca794809c32176629ca4b731843c850 /divelist.c | |
parent | f8ba3c7ab6f1f67338fdf48ac92b5dfa76120264 (diff) | |
download | subsurface-054406b420c7a4bbabbe839f25966fa121adfb5f.tar.gz |
Remove even more code and declarations
There's lots more stuff that can go.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.c')
-rw-r--r-- | divelist.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/divelist.c b/divelist.c index 1e4e344c1..921f9d4ee 100644 --- a/divelist.c +++ b/divelist.c @@ -22,7 +22,6 @@ * void add_dive_to_trip(struct dive *dive, dive_trip_t *trip) * dive_trip_t *create_and_hookup_trip_from_dive(struct dive *dive) * void autogroup_dives(void) - * void clear_trip_indexes(void) * void delete_single_dive(int idx) * void add_single_dive(int idx, struct dive *dive) * void merge_two_dives(struct dive *a, struct dive *b) @@ -92,43 +91,6 @@ dive_trip_t *find_trip_by_idx(int idx) return NULL; } -int dive_nr_sort(int idx_a, int idx_b, timestamp_t when_a, timestamp_t when_b) -{ - struct dive *a, *b; - dive_trip_t *tripa = NULL, *tripb = NULL; - - if (idx_a < 0) { - a = NULL; - tripa = find_trip_by_idx(idx_a); - } else { - a = get_dive(idx_a); - if (a) - tripa = a->divetrip; - } - - if (idx_b < 0) { - b = NULL; - tripb = find_trip_by_idx(idx_b); - } else { - b = get_dive(idx_b); - if (b) - tripb = b->divetrip; - } - - /* - * Compare dive dates within the same trip (or when there - * are no trips involved at all). But if we have two - * different trips use the trip dates for comparison - */ - if (tripa != tripb) { - if (tripa) - when_a = tripa->when; - if (tripb) - when_b = tripb->when; - } - return when_a - when_b; -} - int trip_has_selected_dives(dive_trip_t *trip) { struct dive *dive; @@ -846,14 +808,6 @@ void autogroup_dives(void) #endif } -void clear_trip_indexes(void) -{ - dive_trip_t *trip; - - for (trip = dive_trip_list; trip != NULL; trip = trip->next) - trip->index = 0; -} - /* this implements the mechanics of removing the dive from the table, * but doesn't deal with updating dive trips, etc */ void delete_single_dive(int idx) |