diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-11-08 18:05:31 +0100 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-11-08 18:05:31 +0100 |
commit | 693f8cd5cd05f896fbf73e6b2d1f2fda4f458cce (patch) | |
tree | b4be24b9080e15ae099d4931ea480b20e86d544c /src/daemon/MiddleWare.cpp | |
parent | f1bf98f5efd3535a264264d6f57b1826fcca4f25 (diff) | |
download | abrt-693f8cd5cd05f896fbf73e6b2d1f2fda4f458cce.tar.gz abrt-693f8cd5cd05f896fbf73e6b2d1f2fda4f458cce.tar.xz abrt-693f8cd5cd05f896fbf73e6b2d1f2fda4f458cce.zip |
abrtd: remove support for ActionsAndReporters, abrt_event.conf supersedes it
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/daemon/MiddleWare.cpp')
-rw-r--r-- | src/daemon/MiddleWare.cpp | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/src/daemon/MiddleWare.cpp b/src/daemon/MiddleWare.cpp index c02d5150..dedc492e 100644 --- a/src/daemon/MiddleWare.cpp +++ b/src/daemon/MiddleWare.cpp @@ -41,11 +41,6 @@ CPluginManager* g_pPluginManager; */ typedef std::map<std::string, vector_pair_string_string_t> map_analyzer_actions_and_reporters_t; static map_analyzer_actions_and_reporters_t s_mapAnalyzerActionsAndReporters; -/** - * A vector of one or more action or reporter plugins. These are - * activated when any crash occurs. - */ -static vector_pair_string_string_t s_vectorActionsAndReporters; /** @@ -186,43 +181,6 @@ void RunAction(const char *pActionDir, } } -void RunActionsAndReporters(const char *pDebugDumpDir) -{ - vector_pair_string_string_t::iterator it_ar = s_vectorActionsAndReporters.begin(); - map_plugin_settings_t plugin_settings; - for (; it_ar != s_vectorActionsAndReporters.end(); it_ar++) - { - const char *plugin_name = it_ar->first.c_str(); - try - { - VERB3 log("RunActionsAndReporters: checking %s", plugin_name); - plugin_type_t tp = g_pPluginManager->GetPluginType(plugin_name); - if (tp == REPORTER) - { - CReporter* reporter = g_pPluginManager->GetReporter(plugin_name); /* can't be NULL */ - map_crash_data_t crashReport; - if (DebugDumpToCrashReport(pDebugDumpDir, crashReport)) - { - VERB2 log("%s.Report(...)", plugin_name); - reporter->Report(crashReport, plugin_settings, it_ar->second.c_str()); - } - else - error_msg("Activation of plugin '%s' was not successful: Error converting crash data", plugin_name); - } - else if (tp == ACTION) - { - CAction* action = g_pPluginManager->GetAction(plugin_name); /* can't be NULL */ - VERB2 log("%s.Run('%s','%s')", plugin_name, pDebugDumpDir, it_ar->second.c_str()); - action->Run(pDebugDumpDir, it_ar->second.c_str(), /*force:*/ 0); - } - } - catch (CABRTException& e) - { - error_msg("Activation of plugin '%s' was not successful: %s", plugin_name, e.what()); - } - } -} - struct logging_state { char *last_line; }; @@ -685,10 +643,3 @@ void AddAnalyzerActionOrReporter(const char *pAnalyzer, { s_mapAnalyzerActionsAndReporters[pAnalyzer].push_back(make_pair(std::string(pAnalyzerOrReporter), std::string(pArgs))); } - -void AddActionOrReporter(const char *pActionOrReporter, - const char *pArgs) -{ - VERB3 log("AddActionOrReporter('%s','%s')", pActionOrReporter, pArgs); - s_vectorActionsAndReporters.push_back(make_pair(std::string(pActionOrReporter), std::string(pArgs))); -} |