forked from qt-creator/qt-creator
Debugger: Remove unused QmlEngine::sourceEditors
It look like it has been always empty for a while. Change-Id: I4d169294a93f22ffa6a49203e2cd34a9e0bf924c Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -218,7 +218,6 @@ public:
|
|||||||
QList<QByteArray> sendBuffer;
|
QList<QByteArray> sendBuffer;
|
||||||
|
|
||||||
QHash<QString, QTextDocument*> sourceDocuments;
|
QHash<QString, QTextDocument*> sourceDocuments;
|
||||||
QHash<QString, QWeakPointer<BaseTextEditor> > sourceEditors;
|
|
||||||
InteractiveInterpreter interpreter;
|
InteractiveInterpreter interpreter;
|
||||||
ApplicationLauncher applicationLauncher;
|
ApplicationLauncher applicationLauncher;
|
||||||
QmlInspectorAgent inspectorAgent;
|
QmlInspectorAgent inspectorAgent;
|
||||||
@@ -312,16 +311,6 @@ QmlEngine::QmlEngine()
|
|||||||
QmlEngine::~QmlEngine()
|
QmlEngine::~QmlEngine()
|
||||||
{
|
{
|
||||||
QObject::disconnect(d->startupMessageFilterConnection);
|
QObject::disconnect(d->startupMessageFilterConnection);
|
||||||
QSet<IDocument *> documentsToClose;
|
|
||||||
|
|
||||||
QHash<QString, QWeakPointer<BaseTextEditor> >::iterator iter;
|
|
||||||
for (iter = d->sourceEditors.begin(); iter != d->sourceEditors.end(); ++iter) {
|
|
||||||
QWeakPointer<BaseTextEditor> textEditPtr = iter.value();
|
|
||||||
if (textEditPtr)
|
|
||||||
documentsToClose << textEditPtr.toStrongRef().data()->document();
|
|
||||||
}
|
|
||||||
EditorManager::closeDocuments(Utils::toList(documentsToClose));
|
|
||||||
|
|
||||||
delete d;
|
delete d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user