diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-11-08 14:02:36 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-11-18 16:50:09 -0800 |
commit | bc7afebc23477ef23f2b9741bf45b2180cbafe15 (patch) | |
tree | fbb52713f0d9b74f6db70b50ead1fa781a61f7e4 /core/dive.h | |
parent | 0618aa737fde54e634d16273ec0246ced9c454aa (diff) | |
download | subsurface-bc7afebc23477ef23f2b9741bf45b2180cbafe15.tar.gz |
Core: add add_dive_to_table() function
Up to now, dives were added to the global dive table with
add_single_dive(). Split out the funtionality to add a dive to
an arbitrary dive in the add_dive_to_table_function(). The
difference compared to record_dive_to_table is that dives
are added at a specific position or the sort-criterion given
by dive_less_than(). This will allow to use a dive tabe for trips
instead of a linked list.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/dive.h')
-rw-r--r-- | core/dive.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/core/dive.h b/core/dive.h index aa37eeb46..07223322f 100644 --- a/core/dive.h +++ b/core/dive.h @@ -418,8 +418,6 @@ extern void add_dive_to_trip(struct dive *, dive_trip_t *); struct dive *unregister_dive(int idx); extern void delete_single_dive(int idx); -extern int dive_get_insertion_index(struct dive *dive); -extern void add_single_dive(int idx, struct dive *dive); extern void insert_trip(dive_trip_t *trip); extern void unregister_trip(dive_trip_t *trip); |