From 83c56bc34c4660c0d7bb725d475ddf7a1b3117d3 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 6 Sep 2020 13:52:17 +0200 Subject: cleanup: make taxonomy_index_for_category() local to taxonomy.c This helper function is not used outside taxonomy.c anymore. Let's hide this implementation detail. Signed-off-by: Berthold Stoeger --- core/taxonomy.c | 2 +- core/taxonomy.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'core') diff --git a/core/taxonomy.c b/core/taxonomy.c index 0c9f89957..c21a2e644 100644 --- a/core/taxonomy.c +++ b/core/taxonomy.c @@ -63,7 +63,7 @@ void copy_taxonomy(const struct taxonomy_data *orig, struct taxonomy_data *copy) } } -int taxonomy_index_for_category(const struct taxonomy_data *t, enum taxonomy_category cat) +static int taxonomy_index_for_category(const struct taxonomy_data *t, enum taxonomy_category cat) { for (int i = 0; i < t->nr; i++) { if (t->category[i].category == cat) diff --git a/core/taxonomy.h b/core/taxonomy.h index 01a273053..a2c03220c 100644 --- a/core/taxonomy.h +++ b/core/taxonomy.h @@ -41,7 +41,6 @@ struct taxonomy_data { void free_taxonomy(struct taxonomy_data *t); void copy_taxonomy(const struct taxonomy_data *orig, struct taxonomy_data *copy); -int taxonomy_index_for_category(const struct taxonomy_data *t, enum taxonomy_category cat); const char *taxonomy_get_value(const struct taxonomy_data *t, enum taxonomy_category cat); const char *taxonomy_get_country(const struct taxonomy_data *t); void taxonomy_set_category(struct taxonomy_data *t, enum taxonomy_category category, const char *value, enum taxonomy_origin origin); -- cgit v1.2.3-70-g09d2