diff options
author | Tobias Hunger <[email protected]> | 2012-06-27 22:19:20 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2012-06-28 08:32:01 +0200 |
commit | d1971174d4d475e48c6f922e9aefab933a8581af (patch) | |
tree | a034bc46bf1edcc560da6e6d125c1cedf5d6fbcd /src/plugins/debugger | |
parent | 68ce7a667bf8e7182d154cd3aecdf24ff474ce8d (diff) |
Remove unused member variable from debugger plugin
Change-Id: If630ba9b3d108c2b81316555e67d4bc6a6beb098
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/debugger')
-rw-r--r-- | src/plugins/debugger/debuggerplugin.cpp | 3 | ||||
-rw-r--r-- | src/plugins/debugger/debuggerruncontrolfactory.h | 4 | ||||
-rw-r--r-- | src/plugins/debugger/debuggerrunner.cpp | 5 | ||||
-rw-r--r-- | src/plugins/debugger/logwindow.cpp | 4 |
4 files changed, 5 insertions, 11 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index 8a11ecefb21..c4ce7405a5b 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -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. diff --git a/src/plugins/debugger/debuggerruncontrolfactory.h b/src/plugins/debugger/debuggerruncontrolfactory.h index b2ebf627cea..5166059b8a6 100644 --- a/src/plugins/debugger/debuggerruncontrolfactory.h +++ b/src/plugins/debugger/debuggerruncontrolfactory.h @@ -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 diff --git a/src/plugins/debugger/debuggerrunner.cpp b/src/plugins/debugger/debuggerrunner.cpp index 9d95678f8e7..4f9f7a1ac84 100644 --- a/src/plugins/debugger/debuggerrunner.cpp +++ b/src/plugins/debugger/debuggerrunner.cpp @@ -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 diff --git a/src/plugins/debugger/logwindow.cpp b/src/plugins/debugger/logwindow.cpp index 4329b507c02..aa61d38576f 100644 --- a/src/plugins/debugger/logwindow.cpp +++ b/src/plugins/debugger/logwindow.cpp @@ -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; }; |