Cleanup: remove unused variables

Commit 4d06ddd723 removed deletion of
unused dive sites on save. The corresponding variables were not
removed leading to compiler warnings. Remove the variables too.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-01-10 16:17:50 +02:00 committed by Dirk Hohndel
parent 5f04fecd00
commit 239e6f237f

View file

@ -595,8 +595,6 @@ void save_dives_buffer(struct membuffer *b, const bool select_only, bool anonymi
purge_empty_dive_sites();
put_format(b, "<divesites>\n");
for (i = 0; i < dive_site_table.nr; i++) {
int j;
struct dive *d;
struct dive_site *ds = get_dive_site(i);
if (!is_dive_site_used(ds, false)) {
/* Only write used dive sites */