From bee2dea7ccfcabff512b0a2d487dcab768fab8d9 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 6 Sep 2020 17:54:03 +0200 Subject: 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 --- core/dive.c | 1 - 1 file changed, 1 deletion(-) (limited to 'core') 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); -- cgit v1.2.3-70-g09d2