diff --git a/plugin.hpp b/plugin.hpp index 6479009..04e35ba 100644 --- a/plugin.hpp +++ b/plugin.hpp @@ -31,9 +31,6 @@ namespace sc { } } } - for (const auto& elem : plugins) { - objects.emplace_back(elem.second()); - } throw_if_min1(closedir(plugins_dir)); } @@ -59,7 +56,6 @@ namespace sc { static size_t count() { return plugins.size(); } static const std::map>& all() { return plugins; } - static const std::vector& instances() { return objects; } plugin(const std::string& path) : _path {path} { _plugin = dlopen(path.c_str(), RTLD_LAZY); @@ -116,7 +112,6 @@ namespace sc { private: static std::map> plugins; - static std::vector objects; std::string _path; std::string _name; @@ -127,9 +122,6 @@ namespace sc { template std::map> plugin::plugins; - - template - std::vector objects; } #endif // _plugin_H_