---
src/tag.c | 11 -----------
src/tag.h | 5 -----
2 files changed, 0 insertions(+), 16 deletions(-)
diff --git a/src/tag.c b/src/tag.c
index 69c4c19..6023095 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -148,17 +148,6 @@ static void tag_delete_item(struct tag *tag, unsigned idx)
}
}
-void tag_clear_items_by_type(struct tag *tag, enum tag_type type)
-{
- for (unsigned i = 0; i < tag->num_items; i++) {
- if (tag->items[i]->type == type) {
- tag_delete_item(tag, i);
- /* decrement since when just deleted this node */
- i--;
- }
- }
-}
-
void tag_free(struct tag *tag)
{
int i;
diff --git a/src/tag.h b/src/tag.h
index 4b72dd1..aac87c1 100644
--- a/src/tag.h
+++ b/src/tag.h
@@ -104,11 +104,6 @@ struct tag *tag_new(void);
void tag_lib_init(void);
/**
- * Clear all tag items with the specified type.
- */
-void tag_clear_items_by_type(struct tag *tag, enum tag_type type);
-
-/**
* Frees a #tag object and all its items.
*/
void tag_free(struct tag *tag);
--
1.6.1.3
------------------------------------------------------------------------------
_______________________________________________
Musicpd-dev-team mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team