aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-05-20 11:16:26 +0200
committerGravatar Jan Mulder <jlmulder@xs4all.nl>2018-01-10 16:45:42 +0100
commit5faf3f941056fae32b8d7103cb2c96418b8e3fda (patch)
treed51bcaa3670d80eaec06a9e137035ea87cc87cf8
parent1d7fc930177059b62178ebdf8a4d855c3b757e6b (diff)
downloadsubsurface-5faf3f941056fae32b8d7103cb2c96418b8e3fda.tar.gz
Unused code: has_hr_data()
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
-rw-r--r--core/dive.c15
-rw-r--r--core/dive.h2
2 files changed, 0 insertions, 17 deletions
diff --git a/core/dive.c b/core/dive.c
index 205de9353..1d2168206 100644
--- a/core/dive.c
+++ b/core/dive.c
@@ -424,21 +424,6 @@ double get_weight_units(unsigned int grams, int *frac, const char **units)
return value;
}
-bool has_hr_data(struct divecomputer *dc)
-{
- int i;
- struct sample *sample;
-
- if (!dc)
- return false;
-
- sample = dc->sample;
- for (i = 0; i < dc->samples; i++)
- if (sample[i].heartbeat)
- return true;
- return false;
-}
-
struct dive *alloc_dive(void)
{
struct dive *dive;
diff --git a/core/dive.h b/core/dive.h
index ecb767827..d956dfeb3 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -787,8 +787,6 @@ extern void finish_sample(struct divecomputer *dc);
extern void add_sample_pressure(struct sample *sample, int sensor, int mbar);
extern int legacy_format_o2pressures(struct dive *dive, struct divecomputer *dc);
-extern bool has_hr_data(struct divecomputer *dc);
-
extern void sort_table(struct dive_table *table);
extern struct dive *fixup_dive(struct dive *dive);
extern void fixup_dc_duration(struct divecomputer *dc);