From d3cd85b3436aa02a5d60a3f1f12bc6758e486994 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 30 May 2019 17:35:39 +0200 Subject: Cleanup: remove unused function dump_taglist() This was probably used for debugging but has no callers anymore. Let's remove it. If needed, it can be trivially readded. Signed-off-by: Berthold Stoeger --- core/dive.c | 12 ------------ core/dive.h | 1 - 2 files changed, 13 deletions(-) diff --git a/core/dive.c b/core/dive.c index 5ddaded9e..a85f9a805 100644 --- a/core/dive.c +++ b/core/dive.c @@ -3429,18 +3429,6 @@ struct tag_entry *taglist_added(struct tag_entry *original_list, struct tag_entr return added_list; } -void dump_taglist(const char *intro, struct tag_entry *tl) -{ - char *comma = ""; - fprintf(stderr, "%s", intro); - while(tl) { - fprintf(stderr, "%s %s", comma, tl->tag->name); - comma = ","; - tl = tl->next; - } - fprintf(stderr, "\n"); -} - bool is_dc_planner(const struct divecomputer *dc) { return same_string(dc->model, "planned dive"); } diff --git a/core/dive.h b/core/dive.h index 2998ae9d6..c115f5c0f 100644 --- a/core/dive.h +++ b/core/dive.h @@ -205,7 +205,6 @@ extern struct tag_entry *g_tag_list; struct divetag *taglist_add_tag(struct tag_entry **tag_list, const char *tag); struct tag_entry *taglist_added(struct tag_entry *original_list, struct tag_entry *new_list); -void dump_taglist(const char *intro, struct tag_entry *tl); /* * Writes all divetags form tag_list into internally allocated buffer -- cgit v1.2.3-70-g09d2