mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: remove unused function find_dive_including
Last caller was removed in 7eb422d988
.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
af5aa8a23d
commit
afd6c66346
2 changed files with 0 additions and 16 deletions
15
core/dive.c
15
core/dive.c
|
@ -3351,21 +3351,6 @@ timestamp_t dive_endtime(const struct dive *dive)
|
|||
return dive->when + dive_totaltime(dive);
|
||||
}
|
||||
|
||||
struct dive *find_dive_including(timestamp_t when)
|
||||
{
|
||||
int i;
|
||||
struct dive *dive;
|
||||
|
||||
/* binary search, anyone? Too lazy for now;
|
||||
* also we always use the duration from the first divecomputer
|
||||
* could this ever be a problem? */
|
||||
for_each_dive (i, dive) {
|
||||
if (dive->when <= when && when <= dive_endtime(dive))
|
||||
return dive;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bool time_during_dive_with_offset(struct dive *dive, timestamp_t when, timestamp_t offset)
|
||||
{
|
||||
timestamp_t start = dive->when;
|
||||
|
|
|
@ -292,7 +292,6 @@ extern location_t dive_get_gps_location(const struct dive *d);
|
|||
extern int report_error(const char *fmt, ...);
|
||||
extern void set_error_cb(void(*cb)(char *)); // Callback takes ownership of passed string
|
||||
|
||||
extern struct dive *find_dive_including(timestamp_t when);
|
||||
extern bool dive_within_time_range(struct dive *dive, timestamp_t when, timestamp_t offset);
|
||||
extern bool time_during_dive_with_offset(struct dive *dive, timestamp_t when, timestamp_t offset);
|
||||
struct dive *find_dive_n_near(timestamp_t when, int n, timestamp_t offset);
|
||||
|
|
Loading…
Add table
Reference in a new issue