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>
This commit is contained in:
Dirk Hohndel 2012-11-25 15:10:03 -08:00
parent 42240a83ff
commit 61e040898b

2
dive.c
View file

@ -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