forked from qt-creator/qt-creator
QmlProfiler: Remove some dead code.
Change-Id: I21f26bd40b78d760e72a6cc135a06a368c31eaf2 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -78,11 +78,8 @@ static AnalyzerStartParameters createQmlProfilerStartParameters(RunConfiguration
|
|||||||
sp.debuggee = rc->executable();
|
sp.debuggee = rc->executable();
|
||||||
sp.debuggeeArgs = rc->commandLineArguments();
|
sp.debuggeeArgs = rc->commandLineArguments();
|
||||||
sp.displayName = rc->displayName();
|
sp.displayName = rc->displayName();
|
||||||
|
sp.analyzerPort = LocalQmlProfilerRunner::findFreePort(sp.analyzerHost);
|
||||||
|
|
||||||
quint16 localPort = LocalQmlProfilerRunner::findFreePort(sp.analyzerHost);
|
|
||||||
if (localPort == 0)
|
|
||||||
return sp;
|
|
||||||
sp.analyzerPort = localPort;
|
|
||||||
return sp;
|
return sp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user