forked from qt-creator/qt-creator
qmljsinspector: remove unused global variable
This commit is contained in:
@@ -60,19 +60,10 @@
|
|||||||
using namespace QmlJSInspector::Internal;
|
using namespace QmlJSInspector::Internal;
|
||||||
using namespace QmlJSInspector::Constants;
|
using namespace QmlJSInspector::Constants;
|
||||||
|
|
||||||
namespace {
|
|
||||||
|
|
||||||
InspectorPlugin *g_instance = 0; // the global QML/JS inspector instance
|
|
||||||
|
|
||||||
} // end of anonymous namespace
|
|
||||||
|
|
||||||
InspectorPlugin::InspectorPlugin()
|
InspectorPlugin::InspectorPlugin()
|
||||||
: IPlugin()
|
: IPlugin()
|
||||||
, m_clientProxy(0)
|
, m_clientProxy(0)
|
||||||
{
|
{
|
||||||
Q_ASSERT(! g_instance);
|
|
||||||
g_instance = this;
|
|
||||||
|
|
||||||
m_inspectorUi = new InspectorUi(this);
|
m_inspectorUi = new InspectorUi(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -85,11 +76,6 @@ QmlJS::ModelManagerInterface *InspectorPlugin::modelManager() const
|
|||||||
return ExtensionSystem::PluginManager::instance()->getObject<QmlJS::ModelManagerInterface>();
|
return ExtensionSystem::PluginManager::instance()->getObject<QmlJS::ModelManagerInterface>();
|
||||||
}
|
}
|
||||||
|
|
||||||
InspectorPlugin *InspectorPlugin::instance()
|
|
||||||
{
|
|
||||||
return g_instance;
|
|
||||||
}
|
|
||||||
|
|
||||||
InspectorUi *InspectorPlugin::inspector() const
|
InspectorUi *InspectorPlugin::inspector() const
|
||||||
{
|
{
|
||||||
return m_inspectorUi;
|
return m_inspectorUi;
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ public:
|
|||||||
InspectorPlugin();
|
InspectorPlugin();
|
||||||
virtual ~InspectorPlugin();
|
virtual ~InspectorPlugin();
|
||||||
|
|
||||||
static InspectorPlugin *instance();
|
//static InspectorPlugin *instance();
|
||||||
|
|
||||||
QmlJS::ModelManagerInterface *modelManager() const;
|
QmlJS::ModelManagerInterface *modelManager() const;
|
||||||
InspectorUi *inspector() const;
|
InspectorUi *inspector() const;
|
||||||
|
|||||||
Reference in New Issue
Block a user