aboutsummaryrefslogtreecommitdiffstats
path: root/src/tag/Tag.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-09-05 18:34:12 +0200
committerMax Kellermann <max@duempel.org>2013-09-05 18:34:12 +0200
commit5d5f21bfc5911f9f80b3e24871287ac58db9543f (patch)
tree3f218719baec92da5264266ffe33e313b82e43b9 /src/tag/Tag.cxx
parentfcccedc5884a672eb66221d66fdda4755b4286ba (diff)
downloadmpd-5d5f21bfc5911f9f80b3e24871287ac58db9543f.tar.gz
mpd-5d5f21bfc5911f9f80b3e24871287ac58db9543f.tar.xz
mpd-5d5f21bfc5911f9f80b3e24871287ac58db9543f.zip
Tag: compile-time initialisation of ignore_tag_items
Move to TagSettings.c and use C99 initializers.
Diffstat (limited to 'src/tag/Tag.cxx')
-rw-r--r--src/tag/Tag.cxx10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/tag/Tag.cxx b/src/tag/Tag.cxx
index d0e44862d..24f3ea1e9 100644
--- a/src/tag/Tag.cxx
+++ b/src/tag/Tag.cxx
@@ -19,9 +19,9 @@
#include "config.h"
#include "Tag.hxx"
-#include "TagInternal.hxx"
#include "TagPool.hxx"
#include "TagString.hxx"
+#include "TagSettings.h"
#include <glib.h>
#include <assert.h>
@@ -40,8 +40,6 @@ static struct {
TagItem *items[BULK_MAX];
} bulk;
-bool ignore_tag_items[TAG_NUM_OF_ITEM_TYPES];
-
enum tag_type
tag_name_parse(const char *name)
{
@@ -78,12 +76,6 @@ items_size(const Tag &tag)
return tag.num_items * sizeof(TagItem *);
}
-void tag_lib_init(void)
-{
- /* ignore comments by default */
- ignore_tag_items[TAG_COMMENT] = true;
-}
-
void
Tag::Clear()
{