qmljsinspector: remove unused global variable

This commit is contained in:
hjk
2010-12-03 12:39:00 +01:00
parent 2ccad7afb8
commit 4f23545259
2 changed files with 1 additions and 15 deletions

View File

@@ -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;

View File

@@ -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;