--- src/tag.c | 24 ------------------------ src/tag.h | 6 ------ 2 files changed, 0 insertions(+), 30 deletions(-)
diff --git a/src/tag.c b/src/tag.c index 6023095..2cdefd5 100644 --- a/src/tag.c +++ b/src/tag.c @@ -252,30 +252,6 @@ bool tag_has_type(const struct tag *tag, enum tag_type type) return tag_get_value(tag, type) != NULL; } -bool tag_equal(const struct tag *tag1, const struct tag *tag2) -{ - if (tag1 == NULL && tag2 == NULL) - return true; - else if (!tag1 || !tag2) - return false; - - if (tag1->time != tag2->time) - return false; - - if (tag1->num_items != tag2->num_items) - return false; - - for (unsigned i = 0; i < tag1->num_items; i++) { - if (tag1->items[i]->type != tag2->items[i]->type) - return false; - if (strcmp(tag1->items[i]->value, tag2->items[i]->value)) { - return false; - } - } - - return true; -} - /** * Replace invalid sequences with the question mark. */ diff --git a/src/tag.h b/src/tag.h index aac87c1..da275a6 100644 --- a/src/tag.h +++ b/src/tag.h @@ -192,10 +192,4 @@ tag_get_value(const struct tag *tag, enum tag_type type); */ bool tag_has_type(const struct tag *tag, enum tag_type type); -/** - * Compares two tags, including the duration and all tag items. The - * order of the tag items matters. - */ -bool tag_equal(const struct tag *tag1, const struct tag *tag2); - #endif -- 1.6.1.3 ------------------------------------------------------------------------------ _______________________________________________ Musicpd-dev-team mailing list Musicpd-dev-team@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team