Commit 7d90eefb authored by hjk's avatar hjk
Browse files

debugger: remove dead code

parent ebce274d
......@@ -101,9 +101,6 @@ bool DockWidgetEventFilter::eventFilter(QObject *obj, QEvent *event)
return QObject::eventFilter(obj, event);
}
// first: language id, second: menu item
typedef QPair<DebuggerLanguage, QAction *> ViewsMenuItems;
class DebuggerMainWindowPrivate : public QObject
{
Q_OBJECT
......@@ -118,9 +115,9 @@ public:
bool isQmlCppActive() const;
bool isQmlActive() const;
void setSimpleDockWidgetArrangement(DebuggerLanguages activeLanguages);
void updateUi();
public slots:
void updateUi();
void resetDebuggerLayout();
void updateUiForProject(ProjectExplorer::Project *project);
......@@ -131,7 +128,6 @@ public slots:
public:
DebuggerMainWindow *q;
QList<ViewsMenuItems> m_viewsMenuItems;
QList<QDockWidget *> m_dockWidgets;
QHash<QString, QVariant> m_dockWidgetActiveStateCpp;
......@@ -333,7 +329,8 @@ void DebuggerMainWindowPrivate::createViewsMenuItems()
m_viewsMenu->addAction(cmd);
}
void DebuggerMainWindow::addLanguage(const DebuggerLanguage &languageId, const Context &context)
void DebuggerMainWindow::addLanguage(const DebuggerLanguage &languageId,
const Context &context)
{
d->m_supportedLanguages = d->m_supportedLanguages | languageId;
d->m_languageCount++;
......@@ -478,8 +475,6 @@ QDockWidget *DebuggerMainWindow::createDockWidget(const DebuggerLanguage &langua
cmd->setAttribute(Command::CA_Hide);
d->m_viewsMenu->addAction(cmd);
d->m_viewsMenuItems.append(qMakePair(language, toggleViewAction));
dockWidget->installEventFilter(d->m_resizeEventFilter);
connect(dockWidget->toggleViewAction(), SIGNAL(triggered(bool)),
......
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