mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 19:03:23 +00:00
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:
parent
42240a83ff
commit
61e040898b
1 changed files with 2 additions and 0 deletions
2
dive.c
2
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
|
||||
|
|
Loading…
Add table
Reference in a new issue