mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
0a747608b1
commit
bee2dea7cc
1 changed files with 0 additions and 1 deletions
|
@ -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 */
|
/* make a new unique id, since we still can't handle two equal ids */
|
||||||
res->id = dive_getUniqID();
|
res->id = dive_getUniqID();
|
||||||
invalidate_dive_cache(res);
|
|
||||||
|
|
||||||
delete_divecomputer(res, dc_number);
|
delete_divecomputer(res, dc_number);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue