diff options
author | Guido Lerch <guido.lerch@gmail.com> | 2015-09-05 11:00:54 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-05 11:27:50 -0700 |
commit | 8647f959534396e1ee6d0685908ba9801afb646b (patch) | |
tree | 1381fa98b2c1150e97aac5507bbe259ccb26a233 /dive.h | |
parent | a547ee0ff2044637d2cf300655b509616b49bac1 (diff) | |
download | subsurface-8647f959534396e1ee6d0685908ba9801afb646b.tar.gz |
Uemis downloader: fix and move helper function
This function is only used in the Uemis downloader, and it got broken when
we switched to using a separate table for the downloaded dives.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -582,21 +582,6 @@ extern void delete_current_divecomputer(void); #define for_each_gps_location(_i, _x) \ for ((_i) = 0; ((_x) = get_gps_location(_i, &gps_location_table)) != NULL; (_i)++) -static inline struct dive *get_dive_by_uemis_diveid(uint32_t diveid, uint32_t deviceid) -{ - int i; - struct dive *dive; - - for_each_dive (i, dive) { - struct divecomputer *dc = &dive->dc; - do { - if (dc->diveid == diveid && dc->deviceid == deviceid) - return dive; - } while ((dc = dc->next) != NULL); - } - return NULL; -} - static inline struct dive *get_dive_by_uniq_id(int id) { int i; |