Analyzer: Remove AnalyzerStartParameter::useStartupProject

Not used anymore.

Change-Id: I97da63a3bfabbdcf5ccbd36178832ea47d913d04
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
This commit is contained in:
hjk
2015-06-19 09:34:52 +02:00
parent aa0d68ec3e
commit efad927fc3
3 changed files with 4 additions and 12 deletions

View File

@@ -49,16 +49,10 @@ namespace Analyzer {
class ANALYZER_EXPORT AnalyzerStartParameters class ANALYZER_EXPORT AnalyzerStartParameters
{ {
public: public:
AnalyzerStartParameters()
: useStartupProject(true),
localRunMode(ProjectExplorer::ApplicationLauncher::Gui),
analyzerPort(0)
{}
bool useStartupProject;
ProjectExplorer::RunMode runMode; ProjectExplorer::RunMode runMode;
QSsh::SshConnectionParameters connParams; QSsh::SshConnectionParameters connParams;
ProjectExplorer::ApplicationLauncher::Mode localRunMode; ProjectExplorer::ApplicationLauncher::Mode localRunMode
= ProjectExplorer::ApplicationLauncher::Gui;
QString debuggee; QString debuggee;
QString debuggeeArgs; QString debuggeeArgs;
@@ -67,7 +61,7 @@ public:
QString workingDirectory; QString workingDirectory;
QString sysroot; QString sysroot;
QString analyzerHost; QString analyzerHost;
quint16 analyzerPort; quint16 analyzerPort = 0;
}; };
} // namespace Analyzer } // namespace Analyzer

View File

@@ -72,8 +72,7 @@ bool AnalyzerAction::isRunnable(QString *reason) const
AnalyzerRunControl *AnalyzerAction::tryCreateRunControl(const AnalyzerStartParameters &sp, RunConfiguration *runConfiguration) const AnalyzerRunControl *AnalyzerAction::tryCreateRunControl(const AnalyzerStartParameters &sp, RunConfiguration *runConfiguration) const
{ {
const bool useStartupProject = !m_customToolStarter; if (m_runMode == sp.runMode)
if (m_runMode == sp.runMode && useStartupProject == sp.useStartupProject)
return m_runControlCreator(sp, runConfiguration); return m_runControlCreator(sp, runConfiguration);
return 0; return 0;
} }

View File

@@ -476,7 +476,6 @@ void QmlProfilerTool::startRemoteTool()
} }
AnalyzerStartParameters sp; AnalyzerStartParameters sp;
sp.useStartupProject = false;
IDevice::ConstPtr device = DeviceKitInformation::device(kit); IDevice::ConstPtr device = DeviceKitInformation::device(kit);
if (device) { if (device) {