Commit 5d745a28 authored by Olivier Goffart's avatar Olivier Goffart
Browse files

QMLJSInspector: remove more warnings and debugs

parent f4d2be77
......@@ -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);
......
......@@ -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();
......
......@@ -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;
......
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