aboutsummaryrefslogtreecommitdiffstats
path: root/src/tag/Tag.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-03 12:56:36 +0100
committerMax Kellermann <max@duempel.org>2013-12-03 12:59:55 +0100
commit9f4e96fdfa0967fa83444a44c8e6fdbda14b96c3 (patch)
tree2f08a42a9c2f70160e892314dbeaf3bf559a8203 /src/tag/Tag.cxx
parentc36af357303891a45fdcb286b99ca8bb5be20693 (diff)
downloadmpd-9f4e96fdfa0967fa83444a44c8e6fdbda14b96c3.tar.gz
mpd-9f4e96fdfa0967fa83444a44c8e6fdbda14b96c3.tar.xz
mpd-9f4e96fdfa0967fa83444a44c8e6fdbda14b96c3.zip
PaylistTag: use class TagBuilder
Diffstat (limited to 'src/tag/Tag.cxx')
-rw-r--r--src/tag/Tag.cxx20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/tag/Tag.cxx b/src/tag/Tag.cxx
index 7d1da63df..43ded308a 100644
--- a/src/tag/Tag.cxx
+++ b/src/tag/Tag.cxx
@@ -187,23 +187,3 @@ Tag::AddItem(TagType type, const char *value)
{
AddItem(type, value, strlen(value));
}
-
-void
-Tag::RemoveType(TagType type)
-{
- auto dest = items, src = items, end = items + num_items;
-
- tag_pool_lock.lock();
- while (src != end) {
- TagItem *item = *src++;
- if (item->type == type)
- /* remove it */
- tag_pool_put_item(item);
- else
- /* keep it */
- *dest++ = item;
- }
- tag_pool_lock.unlock();
-
- num_items = dest - items;
-}