mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
ee2f466470
commit
83c56bc34c
2 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue