summaryrefslogtreecommitdiffstats
path: root/core/dive.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/dive.c')
-rw-r--r--core/dive.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/core/dive.c b/core/dive.c
index ae468cf1d..1d16d3fe3 100644
--- a/core/dive.c
+++ b/core/dive.c
@@ -3560,12 +3560,6 @@ static void delete_divecomputer(struct dive *d, int num)
free_dc(dc);
}
}
-
- /* If this is the currently displayed dive, we might have to adjust
- * the currently displayed dive computer. */
- if (d == current_dive && dc_number >= number_of_computers(d))
- dc_number--;
- invalidate_dive_cache(d);
}
/* Clone a dive and delete goven dive computer */