From 94521c9958f5416311318826450825fcbaede4ce Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 17 Jul 2019 15:58:26 +0200 Subject: Cleanup: remove bogus mark_divelist_changed() calls The parsers / downloaders parse into a separate table and do not directly change the divelist. Therefore, they shouldn't call mark_divelist_changed(). Likewise split_dive_at() doesn't modify the dive list and therefore shouldn't call this function. Calling the function has the unwanted side-effect that undoing the change will not clear the *-symbol in the title of the main window. Signed-off-by: Berthold Stoeger --- core/dive.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'core/dive.c') diff --git a/core/dive.c b/core/dive.c index 04247a682..fb1159564 100644 --- a/core/dive.c +++ b/core/dive.c @@ -3195,8 +3195,6 @@ static int split_dive_at(const struct dive *dive, int a, int b, struct dive **ou d2->number = 0; } - mark_divelist_changed(true); - *out1 = d1; *out2 = d2; return nr; -- cgit v1.2.3-70-g09d2