diff options
author | Doug Junkins <junkins@foghead.com> | 2019-03-30 13:34:35 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-12 18:19:07 +0300 |
commit | 9b5eab4ca1589fe28062819e7ebe8daa3929d45a (patch) | |
tree | 48276cda2c6e1e2f104c87a74013b7ad16704445 /core | |
parent | 58f2e5f77c2faaf4c2f75767ee8fde67cc0931ac (diff) | |
download | subsurface-9b5eab4ca1589fe28062819e7ebe8daa3929d45a.tar.gz |
Remove check for whether a site is used before saving it.
Signed-off-by: Doug Junkins <junkins@foghead.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/save-git.c | 3 | ||||
-rw-r--r-- | core/save-xml.c | 4 |
2 files changed, 1 insertions, 6 deletions
diff --git a/core/save-git.c b/core/save-git.c index 13d0b4870..b13921c60 100644 --- a/core/save-git.c +++ b/core/save-git.c @@ -883,9 +883,6 @@ static void save_divesites(git_repository *repo, struct dir *tree) for (int i = 0; i < dive_site_table.nr; i++) { struct membuffer b = { 0 }; struct dive_site *ds = get_dive_site(i, &dive_site_table); - /* Only write used dive sites */ - if (!is_dive_site_used(ds, false)) - continue; struct membuffer site_file_name = { 0 }; put_format(&site_file_name, "Site-%08x", ds->uuid); show_utf8(&b, "name ", ds->name, "\n"); diff --git a/core/save-xml.c b/core/save-xml.c index cd97a6ee9..50a490c80 100644 --- a/core/save-xml.c +++ b/core/save-xml.c @@ -596,9 +596,7 @@ void save_dives_buffer(struct membuffer *b, const bool select_only, bool anonymi put_format(b, "<divesites>\n"); for (i = 0; i < dive_site_table.nr; i++) { struct dive_site *ds = get_dive_site(i, &dive_site_table); - /* Only write used dive sites */ - if (!is_dive_site_used(ds, false)) - continue; + /* Only write used dive sites when exporting selected dives */ if (select_only && !is_dive_site_used(ds, true)) continue; |