summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-11 10:33:36 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-11 16:34:02 -0800
commit9edb7811ef3366cf5ee378a07adb7121fab8630a (patch)
treec0fb88497d451c978262163bf2bceb060e034d5f /dive.h
parent42afb4972ad2928f7f93dd9806234154c62f42cd (diff)
downloadsubsurface-9edb7811ef3366cf5ee378a07adb7121fab8630a.tar.gz
Remove redundant function
We had two functions doing exactly the same thing. Let's drop the one with the highly confusing name. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/dive.h b/dive.h
index b350527a7..a5d0e8712 100644
--- a/dive.h
+++ b/dive.h
@@ -494,13 +494,6 @@ extern unsigned int dc_number;
#define current_dive (get_dive(selected_dive))
#define current_dc (get_dive_dc(current_dive, dc_number))
-static inline struct dive *get_gps_location(int nr, struct dive_table *table)
-{
- if (nr >= table->nr || nr < 0)
- return NULL;
- return table->dives[nr];
-}
-
static inline struct dive *get_dive(int nr)
{
if (nr >= dive_table.nr || nr < 0)