From 95284c026e763482ef581c8b6298012d2c1fd941 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 1 May 2020 13:43:52 +0200 Subject: cleanup: move dive_table from dive.h to divelist.h This allows us to decouple dive.h and divelist.h, a small step in include disentangling. Signed-off-by: Berthold Stoeger --- core/dive.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'core/dive.h') diff --git a/core/dive.h b/core/dive.h index c9369885a..c908750d3 100644 --- a/core/dive.h +++ b/core/dive.h @@ -128,16 +128,10 @@ struct divecomputer { struct divecomputer *next; }; -typedef struct dive_table { - int nr, allocated; - struct dive **dives; -} dive_table_t; - -static const dive_table_t empty_dive_table = { 0, 0, (struct dive **)0 }; - struct picture; struct dive_site; struct dive_site_table; +struct dive_table; struct dive_trip; struct trip_table; struct full_text_cache; @@ -248,7 +242,6 @@ extern int quit, force_root, ignore_bt; extern char *testqml; #endif -extern struct dive_table dive_table; extern struct dive displayed_dive; extern unsigned int dc_number; extern struct dive *current_dive; -- cgit v1.2.3-70-g09d2