summaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-11-25 15:10:03 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-11-25 15:10:03 -0800
commit61e040898b7b86fec86379f6975a371f1cd7b0f8 (patch)
tree2849c70291837f69d6a926e53fecd8158f66df06 /dive.c
parent42240a83ff8e5cfb636dcc31aa2faf99bb19f417 (diff)
downloadsubsurface-61e040898b7b86fec86379f6975a371f1cd7b0f8.tar.gz
Don't compile unused code to determine offset between samples
Commit bb6b6b49a6d4 "Start merging dives by keeping the dive computer data from both dives" created a compile time warning. This simply adds an #if / Yes, this might accelearate bit rod in the code, but I just dislike the warning message when compiling Subsurface. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.c')
-rw-r--r--dive.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dive.c b/dive.c
index faab9f259..72794f960 100644
--- a/dive.c
+++ b/dive.c
@@ -885,6 +885,7 @@ pick_b:
pick_trip(res, b);
}
+#if CURRENTLY_NOT_USED
/*
* Sample 's' is between samples 'a' and 'b'. It is 'offset' seconds before 'b'.
*
@@ -1043,6 +1044,7 @@ static int find_sample_offset(struct divecomputer *a, struct divecomputer *b)
return best;
}
+#endif
/*
* This could do a lot more merging. Right now it really only