diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-02-11 10:33:36 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-02-11 16:34:02 -0800 |
commit | 9edb7811ef3366cf5ee378a07adb7121fab8630a (patch) | |
tree | c0fb88497d451c978262163bf2bceb060e034d5f /dive.h | |
parent | 42afb4972ad2928f7f93dd9806234154c62f42cd (diff) | |
download | subsurface-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.h | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -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) |