From 61e040898b7b86fec86379f6975a371f1cd7b0f8 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 25 Nov 2012 15:10:03 -0800 Subject: [PATCH] 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 --- dive.c | 2 ++ 1 file changed, 2 insertions(+) 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