|
26 | 26 | * |
27 | 27 | */ |
28 | 28 |
|
29 | | -#include "ipfixprobe.hpp" |
30 | | - |
31 | 29 | #include "buildConfig.hpp" |
| 30 | +#include "ipfixprobe.hpp" |
32 | 31 | #include "stacktrace.hpp" |
33 | 32 | #include "stats.hpp" |
34 | 33 |
|
@@ -134,30 +133,6 @@ static void printPluginsUsage(const std::string& pluginName) |
134 | 133 | } |
135 | 134 | } |
136 | 135 |
|
137 | | -static void printRegisteredPlugins( |
138 | | - const std::string& pluginType, |
139 | | - const std::vector<PluginManifest>& pluginsManifest) |
140 | | -{ |
141 | | - std::cout << "Registered " << pluginType << " plugins:" << std::endl; |
142 | | - for (const auto& pluginManifest : pluginsManifest) { |
143 | | - std::cout << " " << pluginManifest.name << std::endl; |
144 | | - } |
145 | | - std::cout << "#####################\n"; |
146 | | -} |
147 | | - |
148 | | -static void printPlugins() |
149 | | -{ |
150 | | - auto& inputPluginFactory = InputPluginFactory::getInstance(); |
151 | | - auto& storagePluginFactory = StoragePluginFactory::getInstance(); |
152 | | - auto& processPluginFactory = ProcessPluginFactory::getInstance(); |
153 | | - auto& outputPluginFactory = OutputPluginFactory::getInstance(); |
154 | | - |
155 | | - printRegisteredPlugins("input", inputPluginFactory.getRegisteredPlugins()); |
156 | | - printRegisteredPlugins("storage", storagePluginFactory.getRegisteredPlugins()); |
157 | | - printRegisteredPlugins("process", processPluginFactory.getRegisteredPlugins()); |
158 | | - printRegisteredPlugins("output", outputPluginFactory.getRegisteredPlugins()); |
159 | | -} |
160 | | - |
161 | 136 | void print_help(const std::string& arg) |
162 | 137 | { |
163 | 138 | if (arg == "input") { |
@@ -679,8 +654,6 @@ int run(int argc, char* argv[]) |
679 | 654 |
|
680 | 655 | conf.pluginManager.loadPlugins(parser.m_plugins_path, loadPluginsRecursive); |
681 | 656 |
|
682 | | - // printPlugins(); |
683 | | - |
684 | 657 | if (parser.m_help) { |
685 | 658 | if (parser.m_help_str.empty()) { |
686 | 659 | parser.usage(std::cout, 0, IPXP_APP_NAME); |
|
0 commit comments