summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--subsurface-core/dive.h1
-rw-r--r--subsurface-core/subsurfacestartup.c12
2 files changed, 0 insertions, 13 deletions
diff --git a/subsurface-core/dive.h b/subsurface-core/dive.h
index f84d45c24..74f55ee81 100644
--- a/subsurface-core/dive.h
+++ b/subsurface-core/dive.h
@@ -728,7 +728,6 @@ extern unsigned int dc_watertemp(struct divecomputer *dc);
extern int split_dive(struct dive *);
extern struct dive *merge_dives(struct dive *a, struct dive *b, int offset, bool prefer_downloaded);
extern struct dive *try_to_merge(struct dive *a, struct dive *b, bool prefer_downloaded);
-extern void renumber_dives(int start_nr, bool selected_only);
extern struct event *clone_event(const struct event *src_ev);
extern void copy_events(struct divecomputer *s, struct divecomputer *d);
extern void free_events(struct event *ev);
diff --git a/subsurface-core/subsurfacestartup.c b/subsurface-core/subsurfacestartup.c
index 864134724..71b2efb5e 100644
--- a/subsurface-core/subsurfacestartup.c
+++ b/subsurface-core/subsurfacestartup.c
@@ -233,18 +233,6 @@ void parse_argument(const char *arg)
} while (*++p);
}
-void renumber_dives(int start_nr, bool selected_only)
-{
- int i, nr = start_nr;
- struct dive *dive;
-
- for_each_dive (i, dive) {
- if (dive->selected)
- dive->number = nr++;
- }
- mark_divelist_changed(true);
-}
-
/*
* Under a POSIX setup, the locale string should have a format
* like [language[_territory][.codeset][@modifier]].