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.
|
||||
m_debuggerRunControlFactory = new DebuggerRunControlFactory
|
||||
(m_plugin, DebuggerEngineType(m_cmdLineEnabledEngines));
|
||||
m_debuggerRunControlFactory = new DebuggerRunControlFactory(m_plugin);
|
||||
m_plugin->addAutoReleasedObject(m_debuggerRunControlFactory);
|
||||
|
||||
// The main "Start Debugging" action.
|
||||
|
@@ -43,7 +43,7 @@ class DebuggerRunControlFactory
|
||||
: public ProjectExplorer::IRunControlFactory
|
||||
{
|
||||
public:
|
||||
explicit DebuggerRunControlFactory(QObject *parent, unsigned enabledEngines);
|
||||
explicit DebuggerRunControlFactory(QObject *parent);
|
||||
|
||||
// This is used by the "Non-Standard" scenarios, e.g. Attach to Core.
|
||||
// FIXME: What to do in case of a 0 runConfiguration?
|
||||
@@ -66,8 +66,6 @@ public:
|
||||
private:
|
||||
QString displayName() const;
|
||||
ProjectExplorer::RunConfigWidget *createConfigurationWidget(RunConfiguration *runConfiguration);
|
||||
|
||||
const unsigned m_enabledEngines;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
@@ -827,9 +827,8 @@ DEBUGGER_EXPORT ConfigurationCheck checkDebugConfiguration(const DebuggerStartPa
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// A factory to create DebuggerRunControls
|
||||
DebuggerRunControlFactory::DebuggerRunControlFactory(QObject *parent,
|
||||
unsigned enabledEngines)
|
||||
: IRunControlFactory(parent), m_enabledEngines(enabledEngines)
|
||||
DebuggerRunControlFactory::DebuggerRunControlFactory(QObject *parent)
|
||||
: IRunControlFactory(parent)
|
||||
{}
|
||||
|
||||
bool DebuggerRunControlFactory::canRun(RunConfiguration *runConfiguration, RunMode mode) const
|
||||
|
@@ -125,7 +125,7 @@ class InputHighlighter : public QSyntaxHighlighter
|
||||
{
|
||||
public:
|
||||
InputHighlighter(QPlainTextEdit *parent)
|
||||
: QSyntaxHighlighter(parent->document()), m_parent(parent)
|
||||
: QSyntaxHighlighter(parent->document())
|
||||
{}
|
||||
|
||||
private:
|
||||
@@ -137,8 +137,6 @@ private:
|
||||
setFormat(1, text.size(), format);
|
||||
}
|
||||
}
|
||||
|
||||
QPlainTextEdit *m_parent;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user