From c63f14eefcf7aff08c28bb709a9fccff37f3c6bf Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 9 Mar 2016 18:57:24 -0800 Subject: Remove unused function Signed-off-by: Dirk Hohndel --- subsurface-core/dive.h | 1 - subsurface-core/subsurfacestartup.c | 12 ------------ 2 files changed, 13 deletions(-) (limited to 'subsurface-core') 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]]. -- cgit v1.2.3-70-g09d2