PluginInfo: remove static init and exit methods
those aren't used.
This commit is contained in:
parent
5ee7571761
commit
2b8eec969b
3 changed files with 2 additions and 21 deletions
|
@ -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_;
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue