diff --git a/src/plugins/debugger/debuggercore.h b/src/plugins/debugger/debuggercore.h index a1810604ca9e34415f04f8982ed9f0ccaf491988..897bfd677c0518776fa1032b5c8e10d7b12e5225 100644 --- a/src/plugins/debugger/debuggercore.h +++ b/src/plugins/debugger/debuggercore.h @@ -96,8 +96,6 @@ public: virtual DebuggerEngine *currentEngine() const = 0; virtual bool isActiveDebugLanguage(int language) const = 0; - virtual void clearCppCodeModelSnapshot() = 0; - // void runTest(const QString &fileName); virtual void showMessage(const QString &msg, int channel, int timeout = -1) = 0; diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index d942f479a83a6f70e020e83a3e1941e34574d8d7..fa6c48430c2af4ccfa3b4d9b3cdedbd5fc99b13e 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -1088,7 +1088,6 @@ public slots: QIcon locationMarkIcon() const { return m_locationMarkIcon; } void openTextEditor(const QString &titlePattern0, const QString &contents); - void clearCppCodeModelSnapshot(); void showMessage(const QString &msg, int channel, int timeout = -1); Utils::SavedAction *action(int code) const; @@ -2613,12 +2612,6 @@ void DebuggerPluginPrivate::openTextEditor(const QString &titlePattern0, EditorManager::activateEditor(editor, EditorManager::IgnoreNavigationHistory); } - -void DebuggerPluginPrivate::clearCppCodeModelSnapshot() -{ - m_codeModelSnapshot = CPlusPlus::Snapshot(); -} - void DebuggerPluginPrivate::showMessage(const QString &msg, int channel, int timeout) { //qDebug() << "PLUGIN OUTPUT: " << channel << msg; diff --git a/src/plugins/debugger/watchwindow.cpp b/src/plugins/debugger/watchwindow.cpp index 9cb91ce7c0acf93919e796b56bd8a50d97a10892..20ff0ed108f93dd4f04784c368285bfbb6a53b47 100644 --- a/src/plugins/debugger/watchwindow.cpp +++ b/src/plugins/debugger/watchwindow.cpp @@ -871,11 +871,6 @@ void WatchTreeView::contextMenuEvent(QContextMenuEvent *ev) menu.addAction(debuggerCore()->action(SortStructMembers)); menu.addAction(debuggerCore()->action(UseDynamicType)); - QAction *actClearCodeModelSnapshot - = new QAction(tr("Refresh Code Model Snapshot"), &menu); - actClearCodeModelSnapshot->setEnabled(actionsEnabled - && debuggerCore()->action(UseCodeModel)->isChecked()); - menu.addAction(actClearCodeModelSnapshot); QAction *actShowInEditor = new QAction(tr("Show View Contents in Editor"), &menu); actShowInEditor->setEnabled(actionsEnabled); @@ -937,8 +932,6 @@ void WatchTreeView::contextMenuEvent(QContextMenuEvent *ev) copyToClipboard(mi1.data().toString()); } else if (act == actRemoveWatches) { currentEngine()->watchHandler()->clearWatches(); - } else if (act == actClearCodeModelSnapshot) { - debuggerCore()->clearCppCodeModelSnapshot(); } else if (act == clearTypeFormatAction) { setModelData(LocalsTypeFormatRole, -1, mi1); } else if (act == clearIndividualFormatAction) {