PluginInfo: remove static init and exit methods

those aren't used.
This commit is contained in:
Mathis Logemann 2022-03-15 21:08:14 +01:00
parent 5ee7571761
commit 2b8eec969b
3 changed files with 2 additions and 21 deletions

View file

@ -45,8 +45,6 @@ class PluginInfo : util::noncopyable
bool valid() const;
std::string get_error() const;
void* get_symbol(std::string const& sym_name) const;
static void init();
static void exit();
private:
std::string filename_;

View file

@ -54,15 +54,8 @@ bool is_input_plugin(std::string const& filename)
return boost::algorithm::ends_with(filename, std::string(".input"));
}
datasource_cache::datasource_cache()
{
PluginInfo::init();
}
datasource_cache::~datasource_cache()
{
PluginInfo::exit();
}
datasource_cache::datasource_cache() {}
datasource_cache::~datasource_cache() {}
datasource_ptr datasource_cache::create(parameters const& params)
{

View file

@ -146,14 +146,4 @@ std::string PluginInfo::get_error() const
return std::string{"could not open: '"} + module_->name + "'. Error: " + module_->error_str;
}
void PluginInfo::init()
{
// do any initialization needed
}
void PluginInfo::exit()
{
// do any shutdown needed
}
} // namespace mapnik