From dd189d0787b01ea96106b6163a7ebf12996c55f2 Mon Sep 17 00:00:00 2001 From: Kai Koehne <kai.koehne@nokia.com> Date: Mon, 14 May 2012 12:23:11 +0200 Subject: [PATCH] Debugger: Remove 'Clear Code Model' context menu action The use case of this action (introduced in 25ee70bb24bec) is unclear. Change-Id: I5188d5c8c9b06c5e2663e2ddc4c89ef1e670d891 Reviewed-by: hjk <qthjk@ovi.com> --- src/plugins/debugger/debuggercore.h | 2 -- src/plugins/debugger/debuggerplugin.cpp | 7 ------- src/plugins/debugger/watchwindow.cpp | 7 ------- 3 files changed, 16 deletions(-) diff --git a/src/plugins/debugger/debuggercore.h b/src/plugins/debugger/debuggercore.h index a1810604ca9..897bfd677c0 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 d942f479a83..fa6c48430c2 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 9cb91ce7c0a..20ff0ed108f 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) { -- GitLab