From 5d745a288f7261322075f93931df6b31d0a24a51 Mon Sep 17 00:00:00 2001 From: Olivier Goffart <olivier.goffart@nokia.com> Date: Fri, 9 Jul 2010 14:36:56 +0200 Subject: [PATCH] QMLJSInspector: remove more warnings and debugs --- src/plugins/qmljsinspector/qmljsdelta.cpp | 3 --- src/plugins/qmljsinspector/qmljsinspectorplugin.cpp | 13 ------------- src/plugins/qmljsinspector/qmljslivetextpreview.cpp | 9 --------- 3 files changed, 25 deletions(-) diff --git a/src/plugins/qmljsinspector/qmljsdelta.cpp b/src/plugins/qmljsinspector/qmljsdelta.cpp index 6492c7ed97c..d31e7ce99e7 100644 --- a/src/plugins/qmljsinspector/qmljsdelta.cpp +++ b/src/plugins/qmljsinspector/qmljsdelta.cpp @@ -398,7 +398,6 @@ void Delta::operator()(Document::Ptr doc, Document::Ptr previousDoc) if (methodCode != previousMethodCode) { const QString methodName = bindingParser.methodName(uiSource); - qDebug() << methodName << methodCode; QDeclarativeDebugObjectReference ref = objectReferenceForUiObject(bindingParser, object); if (ref.debugId() != -1) updateMethodBody(ref, script, methodName, methodCode); @@ -432,8 +431,6 @@ void Delta::updateScriptBinding(const QDeclarativeDebugObjectReference &objectRe const QString &propertyName, const QString &scriptCode) { - qDebug() << "update script:" << propertyName << scriptCode << scriptBinding; - QVariant expr = scriptCode; const bool isLiteral = isLiteralValue(scriptBinding); diff --git a/src/plugins/qmljsinspector/qmljsinspectorplugin.cpp b/src/plugins/qmljsinspector/qmljsinspectorplugin.cpp index 36f82eeb6a0..347a60f2299 100644 --- a/src/plugins/qmljsinspector/qmljsinspectorplugin.cpp +++ b/src/plugins/qmljsinspector/qmljsinspectorplugin.cpp @@ -82,7 +82,6 @@ QToolButton *createToolButton(QAction *action) InspectorPlugin::InspectorPlugin() { - qDebug() << Q_FUNC_INFO; Q_ASSERT(! g_instance); g_instance = this; @@ -93,7 +92,6 @@ InspectorPlugin::InspectorPlugin() InspectorPlugin::~InspectorPlugin() { - qDebug() << Q_FUNC_INFO; } QmlJS::ModelManagerInterface *InspectorPlugin::modelManager() const @@ -118,7 +116,6 @@ Inspector *InspectorPlugin::inspector() const void InspectorPlugin::aboutToShutdown() { - qDebug() << Q_FUNC_INFO; } bool InspectorPlugin::initialize(const QStringList &arguments, QString *errorString) @@ -126,8 +123,6 @@ bool InspectorPlugin::initialize(const QStringList &arguments, QString *errorStr Q_UNUSED(arguments); Q_UNUSED(errorString); - qDebug() << Q_FUNC_INFO; - connect(Core::ModeManager::instance(), SIGNAL(currentModeChanged(Core::IMode*)), SLOT(prepareDebugger(Core::IMode*))); @@ -149,8 +144,6 @@ bool InspectorPlugin::initialize(const QStringList &arguments, QString *errorStr void InspectorPlugin::extensionsInitialized() { - qDebug() << Q_FUNC_INFO; - ExtensionSystem::PluginManager *pluginManager = ExtensionSystem::PluginManager::instance(); Debugger::DebuggerUISwitcher *uiSwitcher = pluginManager->getObject<Debugger::DebuggerUISwitcher>(); @@ -185,8 +178,6 @@ void InspectorPlugin::activateDebuggerForProject(ProjectExplorer::Project *proje Q_UNUSED(project); Q_UNUSED(runMode); - qDebug() << Q_FUNC_INFO; - if (runMode == QLatin1String(ProjectExplorer::Constants::DEBUGMODE)) { #ifdef __GNUC__ # warning start a QML/JS debugging session using the information stored in the current project @@ -203,8 +194,6 @@ void InspectorPlugin::activateDebuggerForProject(ProjectExplorer::Project *proje void InspectorPlugin::prepareDebugger(Core::IMode *mode) { - qDebug() << Q_FUNC_INFO; - if (mode->id() != QLatin1String(Debugger::Constants::MODE_DEBUG)) return; @@ -221,8 +210,6 @@ void InspectorPlugin::setDockWidgetArrangement(const QString &activeLanguage) { Q_UNUSED(activeLanguage); - qDebug() << Q_FUNC_INFO; - #if 0 if (activeLanguage == Qml::Constants::LANG_QML || activeLanguage.isEmpty()) m_inspector->setSimpleDockWidgetArrangement(); diff --git a/src/plugins/qmljsinspector/qmljslivetextpreview.cpp b/src/plugins/qmljsinspector/qmljslivetextpreview.cpp index 865e481192a..9cce2ea13d9 100644 --- a/src/plugins/qmljsinspector/qmljslivetextpreview.cpp +++ b/src/plugins/qmljsinspector/qmljslivetextpreview.cpp @@ -54,8 +54,6 @@ void QmlJSLiveTextPreview::updateDocuments() void QmlJSLiveTextPreview::changeSelectedElement(int offset, const QString &wordAtCursor) { - qDebug() << __FUNCTION__ << offset << wordAtCursor; - if (!m_currentEditor) return; @@ -70,17 +68,12 @@ void QmlJSLiveTextPreview::changeSelectedElement(int offset, const QString &word foreach (const QDeclarativeDebugObjectReference &ref, refs) { if (ref.idString() == wordAtCursor) { objectRef = ref; - qDebug() << "yes"; break; } } if (objectRef.debugId() == -1 && offset >= 0) { objectRef = info.objectReferenceForOffset(offset); - - qDebug() << "====================="; - qDebug() << objectRef.className() << objectRef.source().url() << objectRef.source().lineNumber() << offset; - qDebug() << "====================="; } if (objectRef.debugId() != -1) @@ -112,8 +105,6 @@ void QmlJSLiveTextPreview::documentChanged(QmlJS::Document::Ptr doc) return; if (doc && m_previousDoc && doc->fileName() == m_previousDoc->fileName()) { - qDebug() << "Doc, prevDoc:" << doc->fileName() << m_previousDoc->fileName(); - Delta delta; delta(doc, m_previousDoc); m_previousDoc = doc; -- GitLab