From 86fc61db75385d6fb452b4cf88aec1deffa3a5be Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 23 Nov 2010 15:51:54 +0100 Subject: remove sqlite DB This change removes sqlite database. Database was used to find dump dirs by [UID:]UUID. This patch uses more natural way: dump dirs are addressed by their directory names. DB was also used to produce a list of dump dirs. Now it is done by iterating over the /var/spool/abrt directory. And finally, DB was also used to find duplicate UUIDs. Now it is done by iterating over the /var/spool/abrt directory. Crash count, "inform all" and reporting result message are moved from DB field to a file in dump dir. "Reported" DB field is deleted - if message != "", then this dump was reported. Signed-off-by: Denys Vlasenko --- src/daemon/PluginManager.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/daemon/PluginManager.cpp') diff --git a/src/daemon/PluginManager.cpp b/src/daemon/PluginManager.cpp index 0f7b983d..665a4625 100644 --- a/src/daemon/PluginManager.cpp +++ b/src/daemon/PluginManager.cpp @@ -247,20 +247,6 @@ CAction* CPluginManager::GetAction(const char *pName, bool silent) return (CAction*)plugin; } -CDatabase* CPluginManager::GetDatabase(const char *pName) -{ - CPlugin *plugin = LoadPlugin(pName); - if (!plugin) - { - throw CABRTException(EXCEP_PLUGIN, "Plugin '%s' is not registered", pName); - } - if (m_mapLoadedModules[pName]->GetType() != DATABASE) - { - throw CABRTException(EXCEP_PLUGIN, "Plugin '%s' is not a database plugin", pName); - } - return (CDatabase*)plugin; -} - plugin_type_t CPluginManager::GetPluginType(const char *pName) { CPlugin *plugin = LoadPlugin(pName); -- cgit