diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-10-14 15:33:46 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-14 15:55:07 -0400 |
commit | 0b57b8d59f9e9eeb10f7d66bb4b83f78394f68e7 (patch) | |
tree | 71f07f6f97bf5230b8174884976e43d6e11e22d7 /core/parse.c | |
parent | b01cba13c5dc81ed7367ae79b6af361e6abc0da1 (diff) | |
download | subsurface-0b57b8d59f9e9eeb10f7d66bb4b83f78394f68e7.tar.gz |
Cleanup: move clear_table() to divesite.c
There were two declaration of clear_table(), one in dive.h and one
in parse.h. The definition was in parse.c. Since the parser doesn't
even use the function, move the function and its declaration to
divelist.[ch] and remove the redundant declaration in dive.h.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/parse.c')
-rw-r--r-- | core/parse.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/core/parse.c b/core/parse.c index a444dc441..054db156f 100644 --- a/core/parse.c +++ b/core/parse.c @@ -71,16 +71,6 @@ int trimspace(char *buffer) } /* - * Clear a dive_table - */ -void clear_table(struct dive_table *table) -{ - for (int i = 0; i < table->nr; i++) - free(table->dives[i]); - table->nr = 0; -} - -/* * Add a dive into the dive_table array */ void record_dive_to_table(struct dive *dive, struct dive_table *table) |