mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: use add_to_dive_table() in record_dive_to_table()
This was reimplementing functionality that was already there. Simply call the already existing function. Thus, we don't have to export the grow_dive_table function. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
3df32044ee
commit
d129085b59
3 changed files with 2 additions and 8 deletions
|
@ -78,12 +78,7 @@ int trimspace(char *buffer)
|
|||
*/
|
||||
void record_dive_to_table(struct dive *dive, struct dive_table *table)
|
||||
{
|
||||
assert(table != NULL);
|
||||
struct dive **dives = grow_dive_table(table);
|
||||
int nr = table->nr;
|
||||
|
||||
dives[nr] = fixup_dive(dive);
|
||||
table->nr = nr + 1;
|
||||
add_to_dive_table(table, table->nr, fixup_dive(dive));
|
||||
}
|
||||
|
||||
void record_dive(struct dive *dive)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue