Commit e017218d authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

npapi: Remove write only static instances set

parent 227e77c8
......@@ -58,7 +58,6 @@ VlcPluginBase::VlcPluginBase( NPP instance, NPuint16_t mode ) :
psz_baseURL(NULL)
{
memset(&npwindow, 0, sizeof(NPWindow));
_instances.insert(this);
}
static bool boolValue(const char *value) {
......@@ -68,8 +67,6 @@ static bool boolValue(const char *value) {
!strcasecmp(value, "yes") );
}
std::set<VlcPluginBase*> VlcPluginBase::_instances;
NPError VlcPluginBase::init(int argc, char* const argn[], char* const argv[])
{
/* prepare VLC command line */
......@@ -243,8 +240,6 @@ VlcPluginBase::~VlcPluginBase()
{
free(psz_baseURL);
free(psz_target);
_instances.erase(this);
}
void VlcPluginBase::setWindow(const NPWindow &window)
......
......@@ -35,7 +35,6 @@
#include "utils.hpp"
#include <vector>
#include <set>
#include <utility>
#include <unordered_map>
......@@ -140,9 +139,6 @@ protected:
vlc_player m_player;
private:
static std::set<VlcPluginBase*> _instances;
private:
std::vector<std::tuple<std::string, NPObject*, VLC::EventManager::RegisteredEvent>> m_events;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment