forked from qt-creator/qt-creator
Remove unused member variable from debugger plugin
Change-Id: If630ba9b3d108c2b81316555e67d4bc6a6beb098 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -3103,8 +3103,7 @@ void DebuggerPluginPrivate::extensionsInitialized()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Register factory of DebuggerRunControl.
|
// Register factory of DebuggerRunControl.
|
||||||
m_debuggerRunControlFactory = new DebuggerRunControlFactory
|
m_debuggerRunControlFactory = new DebuggerRunControlFactory(m_plugin);
|
||||||
(m_plugin, DebuggerEngineType(m_cmdLineEnabledEngines));
|
|
||||||
m_plugin->addAutoReleasedObject(m_debuggerRunControlFactory);
|
m_plugin->addAutoReleasedObject(m_debuggerRunControlFactory);
|
||||||
|
|
||||||
// The main "Start Debugging" action.
|
// The main "Start Debugging" action.
|
||||||
|
@@ -43,7 +43,7 @@ class DebuggerRunControlFactory
|
|||||||
: public ProjectExplorer::IRunControlFactory
|
: public ProjectExplorer::IRunControlFactory
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit DebuggerRunControlFactory(QObject *parent, unsigned enabledEngines);
|
explicit DebuggerRunControlFactory(QObject *parent);
|
||||||
|
|
||||||
// This is used by the "Non-Standard" scenarios, e.g. Attach to Core.
|
// This is used by the "Non-Standard" scenarios, e.g. Attach to Core.
|
||||||
// FIXME: What to do in case of a 0 runConfiguration?
|
// FIXME: What to do in case of a 0 runConfiguration?
|
||||||
@@ -66,8 +66,6 @@ public:
|
|||||||
private:
|
private:
|
||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
ProjectExplorer::RunConfigWidget *createConfigurationWidget(RunConfiguration *runConfiguration);
|
ProjectExplorer::RunConfigWidget *createConfigurationWidget(RunConfiguration *runConfiguration);
|
||||||
|
|
||||||
const unsigned m_enabledEngines;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
|
@@ -827,9 +827,8 @@ DEBUGGER_EXPORT ConfigurationCheck checkDebugConfiguration(const DebuggerStartPa
|
|||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
// A factory to create DebuggerRunControls
|
// A factory to create DebuggerRunControls
|
||||||
DebuggerRunControlFactory::DebuggerRunControlFactory(QObject *parent,
|
DebuggerRunControlFactory::DebuggerRunControlFactory(QObject *parent)
|
||||||
unsigned enabledEngines)
|
: IRunControlFactory(parent)
|
||||||
: IRunControlFactory(parent), m_enabledEngines(enabledEngines)
|
|
||||||
{}
|
{}
|
||||||
|
|
||||||
bool DebuggerRunControlFactory::canRun(RunConfiguration *runConfiguration, RunMode mode) const
|
bool DebuggerRunControlFactory::canRun(RunConfiguration *runConfiguration, RunMode mode) const
|
||||||
|
@@ -125,7 +125,7 @@ class InputHighlighter : public QSyntaxHighlighter
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
InputHighlighter(QPlainTextEdit *parent)
|
InputHighlighter(QPlainTextEdit *parent)
|
||||||
: QSyntaxHighlighter(parent->document()), m_parent(parent)
|
: QSyntaxHighlighter(parent->document())
|
||||||
{}
|
{}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@@ -137,8 +137,6 @@ private:
|
|||||||
setFormat(1, text.size(), format);
|
setFormat(1, text.size(), format);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QPlainTextEdit *m_parent;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user