From 5d5f21bfc5911f9f80b3e24871287ac58db9543f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 5 Sep 2013 18:34:12 +0200 Subject: Tag: compile-time initialisation of ignore_tag_items Move to TagSettings.c and use C99 initializers. --- src/tag/Tag.cxx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/tag/Tag.cxx') 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 #include @@ -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() { -- cgit v1.2.3