mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Removed duplicated method.
This patch removes a duplicated method: get_divenr and
get_index_for_dive. The two are exactly the same ( if my
c is not broken, but I may be broken since I'm working like
crazy for almost 30h nonstop. ), so please take a good look
before applying this one.
[Dirk Hohndel: Tomaz took the slightly broken of the two implementations,
so I switched that out for the correct one]
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ad0aa8cc49
commit
314cf4c628
4 changed files with 14 additions and 23 deletions
2
dive.h
2
dive.h
|
|
@ -416,8 +416,6 @@ struct dive {
|
|||
struct divecomputer dc;
|
||||
};
|
||||
|
||||
extern int get_index_for_dive(struct dive *dive);
|
||||
|
||||
static inline int dive_has_gps_location(struct dive *dive)
|
||||
{
|
||||
return dive->latitude.udeg || dive->longitude.udeg;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue