Commit 4f235452 authored by hjk's avatar hjk
Browse files

qmljsinspector: remove unused global variable

parent 2ccad7af
......@@ -60,19 +60,10 @@
using namespace QmlJSInspector::Internal;
using namespace QmlJSInspector::Constants;
namespace {
InspectorPlugin *g_instance = 0; // the global QML/JS inspector instance
} // end of anonymous namespace
InspectorPlugin::InspectorPlugin()
: IPlugin()
, m_clientProxy(0)
{
Q_ASSERT(! g_instance);
g_instance = this;
m_inspectorUi = new InspectorUi(this);
}
......@@ -85,11 +76,6 @@ QmlJS::ModelManagerInterface *InspectorPlugin::modelManager() const
return ExtensionSystem::PluginManager::instance()->getObject<QmlJS::ModelManagerInterface>();
}
InspectorPlugin *InspectorPlugin::instance()
{
return g_instance;
}
InspectorUi *InspectorPlugin::inspector() const
{
return m_inspectorUi;
......
......@@ -54,7 +54,7 @@ public:
InspectorPlugin();
virtual ~InspectorPlugin();
static InspectorPlugin *instance();
//static InspectorPlugin *instance();
QmlJS::ModelManagerInterface *modelManager() const;
InspectorUi *inspector() const;
......
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