Unused code: remove taglist_equal()

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
Jan Mulder 2017-05-20 08:41:35 +02:00
parent 768f0db991
commit 3cd3653972
2 changed files with 0 additions and 7 deletions

View file

@ -3147,12 +3147,6 @@ void dump_taglist(const char *intro, struct tag_entry *tl)
fprintf(stderr, "\n"); fprintf(stderr, "\n");
} }
// if tl1 is both a subset and superset of tl2 they must be the same
bool taglist_equal(struct tag_entry *tl1, struct tag_entry *tl2)
{
return taglist_contains_all(tl1, tl2) && taglist_contains_all(tl2, tl1);
}
// count the dives where the tag list contains the given tag // count the dives where the tag list contains the given tag
int count_dives_with_tag(const char *tag) int count_dives_with_tag(const char *tag)
{ {

View file

@ -265,7 +265,6 @@ void taglist_init_global();
void taglist_free(struct tag_entry *tag_list); void taglist_free(struct tag_entry *tag_list);
bool taglist_contains(struct tag_entry *tag_list, const char *tag); bool taglist_contains(struct tag_entry *tag_list, const char *tag);
bool taglist_equal(struct tag_entry *tl1, struct tag_entry *tl2);
int count_dives_with_tag(const char *tag); int count_dives_with_tag(const char *tag);
int count_dives_with_person(const char *person); int count_dives_with_person(const char *person);
int count_dives_with_location(const char *location); int count_dives_with_location(const char *location);