summaryrefslogtreecommitdiffstats
path: root/subsurface-core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-09 18:57:24 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-09 21:47:25 -0800
commitc63f14eefcf7aff08c28bb709a9fccff37f3c6bf (patch)
tree1ae0793b66ad098ac075b32718c62894771c146c /subsurface-core
parent69204804630e51ee7c1e9fddd3620efc327d14a4 (diff)
downloadsubsurface-c63f14eefcf7aff08c28bb709a9fccff37f3c6bf.tar.gz
Remove unused function
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core')
-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]].