diff options
Diffstat (limited to 'src/plugins/debugger/qml/qmlengineutils.cpp')
-rw-r--r-- | src/plugins/debugger/qml/qmlengineutils.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/plugins/debugger/qml/qmlengineutils.cpp b/src/plugins/debugger/qml/qmlengineutils.cpp index 55dc00813d..50f707d005 100644 --- a/src/plugins/debugger/qml/qmlengineutils.cpp +++ b/src/plugins/debugger/qml/qmlengineutils.cpp @@ -209,28 +209,6 @@ public: quint32 *column; }; -bool adjustBreakpointLineAndColumn(const QString &filePath, quint32 *line, quint32 *column, bool *valid) -{ - bool success = false; - //check if file is in the latest snapshot - //ignoring documentChangedOnDisk - //TODO:: update breakpoints if document is changed. - ModelManagerInterface *mmIface = ModelManagerInterface::instance(); - if (mmIface) { - Document::Ptr doc = mmIface->newestSnapshot().document(filePath); - if (doc.isNull()) { - ModelManagerInterface::instance()->updateSourceFiles( - QStringList() << filePath, false); - } else { - ASTWalker walker; - walker(doc->ast(), line, column); - *valid = walker.done; - success = true; - } - } - return success; -} - void appendDebugOutput(QtMsgType type, const QString &message, const QDebugContextInfo &info) { ConsoleItem::ItemType itemType; |