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>
This commit is contained in:
Berthold Stoeger 2020-09-06 17:54:03 +02:00 committed by Dirk Hohndel
parent 0a747608b1
commit bee2dea7cc

View file

@ -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);