diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-09-06 17:54:03 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-09-08 17:20:09 -0700 |
commit | bee2dea7ccfcabff512b0a2d487dcab768fab8d9 (patch) | |
tree | 983af3d48c885db6c02fcc635c67db3f73bd6f57 /core | |
parent | 0a747608b1673eee9d134dc3cab57036768ef97f (diff) | |
download | subsurface-bee2dea7ccfcabff512b0a2d487dcab768fab8d9.tar.gz |
cleanup: remove invalidate_dive_cache() call in clone_delete_divecomputer()
The function was called on a freshly copied dive, which has its git cache
invalidated automatically in copy_dive().
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core')
-rw-r--r-- | core/dive.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/dive.c b/core/dive.c index 1d16d3fe3..35d5c5972 100644 --- a/core/dive.c +++ b/core/dive.c @@ -3573,7 +3573,6 @@ struct dive *clone_delete_divecomputer(const struct dive *d, int dc_number) /* make a new unique id, since we still can't handle two equal ids */ res->id = dive_getUniqID(); - invalidate_dive_cache(res); delete_divecomputer(res, dc_number); |