From c33e78aa041e62dd283c7c123b73ae4da08df2d4 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 4 Mar 2015 09:12:57 +0100 Subject: [PATCH] Don't discard config validators --- lib/config/configitem.cpp | 1 - lib/config/configtype.cpp | 5 ----- lib/config/configtype.hpp | 1 - 3 files changed, 7 deletions(-) diff --git a/lib/config/configitem.cpp b/lib/config/configitem.cpp index 8b73b66b9..c1b02a5e7 100644 --- a/lib/config/configitem.cpp +++ b/lib/config/configitem.cpp @@ -378,7 +378,6 @@ bool ConfigItem::CommitItems(void) } ApplyRule::CheckMatches(); - ConfigType::DiscardTypes(); /* log stats for external parsers */ BOOST_FOREACH(const DynamicType::Ptr& type, DynamicType::GetTypes()) { diff --git a/lib/config/configtype.cpp b/lib/config/configtype.cpp index 164f2d5fa..af19b866d 100644 --- a/lib/config/configtype.cpp +++ b/lib/config/configtype.cpp @@ -269,11 +269,6 @@ ConfigTypeRegistry::ItemMap ConfigType::GetTypes(void) return ConfigTypeRegistry::GetInstance()->GetItems(); } -void ConfigType::DiscardTypes(void) -{ - ConfigTypeRegistry::GetInstance()->Clear(); -} - ConfigTypeRegistry *ConfigTypeRegistry::GetInstance(void) { return Singleton::GetInstance(); diff --git a/lib/config/configtype.hpp b/lib/config/configtype.hpp index 3ffd939e4..d4a63564b 100644 --- a/lib/config/configtype.hpp +++ b/lib/config/configtype.hpp @@ -56,7 +56,6 @@ public: void Register(void); static ConfigType::Ptr GetByName(const String& name); static Registry::ItemMap GetTypes(void); - static void DiscardTypes(void); private: String m_Name; /**< The type name. */