summaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-11-16 19:21:54 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-16 20:27:54 -0800
commit314cf4c628ac6e709de93f18be384fe819b46f81 (patch)
tree2797068c52f47caaa1b1f5b1d1bdfdd8e2dca70b /dive.c
parentad0aa8cc497fb954b3fd08aa603d24c384fd16de (diff)
downloadsubsurface-314cf4c628ac6e709de93f18be384fe819b46f81.tar.gz
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>
Diffstat (limited to 'dive.c')
-rw-r--r--dive.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/dive.c b/dive.c
index e4bec0314..558cdee30 100644
--- a/dive.c
+++ b/dive.c
@@ -2038,15 +2038,6 @@ struct dive *merge_dives(struct dive *a, struct dive *b, int offset, bool prefer
return res;
}
-int get_index_for_dive(struct dive *dive) {
- int i;
- struct dive *d;
- for_each_dive(i, d)
- if (d == dive)
- return i;
- return -1;
-}
-
struct dive *find_dive_including(timestamp_t when)
{
int i;