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 <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-09-06 13:52:17 +02:00 committed by Dirk Hohndel
parent ee2f466470
commit 83c56bc34c
2 changed files with 1 additions and 2 deletions

View file

@ -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)

View file

@ -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);