Commit d721e55a authored by hjk's avatar hjk
Browse files

debugger: remove unneeded code from ui switcher

parent 19472377
......@@ -36,22 +36,21 @@
#include <utils/savedaction.h>
#include <utils/styledbar.h>
#include <utils/qtcassert.h>
#include <coreplugin/actionmanager/command.h>
#include <debugger/debuggerconstants.h>
#include <debugger/debuggeractions.h>
#include <coreplugin/modemanager.h>
#include <coreplugin/actionmanager/actioncontainer.h>
#include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/actionmanager/command.h>
#include <coreplugin/basemode.h>
#include <coreplugin/coreconstants.h>
#include <coreplugin/icore.h>
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/findplaceholder.h>
#include <coreplugin/icore.h>
#include <coreplugin/minisplitter.h>
#include <coreplugin/rightpane.h>
#include <coreplugin/outputpane.h>
#include <coreplugin/modemanager.h>
#include <coreplugin/navigationwidget.h>
#include <coreplugin/actionmanager/actioncontainer.h>
#include <coreplugin/outputpane.h>
#include <coreplugin/rightpane.h>
#include <projectexplorer/projectexplorerconstants.h>
#include <QtGui/QActionGroup>
......@@ -93,8 +92,6 @@ struct DebuggerUISwitcherPrivate
bool m_isActiveMode;
bool m_changingUI;
const static int StackIndexRole = Qt::UserRole + 11;
Core::ActionContainer *m_languageMenu;
Core::ActionContainer *m_viewsMenu;
Core::ActionContainer *m_debugMenu;
......@@ -301,7 +298,6 @@ void DebuggerUISwitcher::changeDebuggerUI(const QString &langName)
}
d->m_languageMenu->menu()->setTitle(tr("Language") + " (" + langName + ")");
QHashIterator<int, Core::Command *> iter(d->m_menuCommands);
Core::ICore *core = Core::ICore::instance();
const Core::Context &oldContexts = d->m_contextsForLanguage.value(d->m_activeLanguage);
......
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