summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-05-20 08:37:04 +0200
committerGravatar Jan Mulder <jlmulder@xs4all.nl>2018-01-10 16:45:42 +0100
commit768f0db991b79455422ea9bd2e38e29815bd133f (patch)
treef274ed7d3e2ea4863d07bad1f36bd595c4aa014a /core
parentc69ea1de1b023f3be9003ceb34e5fc1d6684f051 (diff)
downloadsubsurface-768f0db991b79455422ea9bd2e38e29815bd133f.tar.gz
Unused code: remove shift_times()
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'core')
-rw-r--r--core/dive.c13
-rw-r--r--core/dive.h1
2 files changed, 0 insertions, 14 deletions
diff --git a/core/dive.c b/core/dive.c
index 0a8c9f2a9..372361a47 100644
--- a/core/dive.c
+++ b/core/dive.c
@@ -3596,19 +3596,6 @@ struct dive *find_dive_n_near(timestamp_t when, int n, timestamp_t offset)
return NULL;
}
-void shift_times(const timestamp_t amount)
-{
- int i;
- struct dive *dive;
-
- for_each_dive (i, dive) {
- if (!dive->selected)
- continue;
- dive->when += amount;
- invalidate_dive_cache(dive);
- }
-}
-
timestamp_t get_times()
{
int i;
diff --git a/core/dive.h b/core/dive.h
index c3c0d78f8..bf7e08d86 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -767,7 +767,6 @@ extern void subsurface_console_init(void);
extern void subsurface_console_exit(void);
extern bool subsurface_user_is_root(void);
-extern void shift_times(const timestamp_t amount);
extern timestamp_t get_times();
extern xsltStylesheetPtr get_stylesheet(const char *name);