From df40ebde3cab4318240f0c9759b71a55dc55eedc Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Thu, 18 Jun 2015 10:41:22 +0200 Subject: [PATCH] QmlProfiler: Remove some dead code. Change-Id: I21f26bd40b78d760e72a6cc135a06a368c31eaf2 Reviewed-by: hjk --- src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp b/src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp index 012b5a6bd0d..a5ea4fa0032 100644 --- a/src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp @@ -78,11 +78,8 @@ static AnalyzerStartParameters createQmlProfilerStartParameters(RunConfiguration sp.debuggee = rc->executable(); sp.debuggeeArgs = rc->commandLineArguments(); 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; }